--- a/dell-satellite-sync.py 2013-01-03 11:12:49.000000000 -0600 +++ b/dell-satellite-sync.py 2013-01-03 11:41:26.000000000 -0600 @@ -55,7 +55,7 @@ parser.add_option("-s", "--satserver", dest="satserver", help="FQDN of Satellite server", default=SATELLITE_SERVER) parser.add_option("-S", "--server-actions-only", action="store_true", dest="server_actions_only", help="Create channels and upload RPMs, skip system subscriptions.", default=False) parser.add_option("-r", "--repo", dest="repo", help="Location of Dell yum repositories. Defaults to 'http://linux.dell.com/repo/hardware/latest'", default=REPO) -parser.add_option("-c", "--channel", dest="channel", help="OS parent channel to use. e.g. 'rhel4', 'rhel5', 'rhel6' or 'sles11'", default=CHANNEL) +parser.add_option("-c", "--channel", dest="channel", help="OS parent channel to use. e.g. 'rhel4', 'rhel5', 'rhel6' or 'sles11' or 'centos6'", default=CHANNEL) parser.add_option("-o", "--only-systems", dest="only_systems", help="Create system-specific channels ONLY for these systems. e.g. 'per720,per620,pet620'", default=ONLY_SYSTEMS) parser.add_option("-a", "--all-systems", action="store_true", dest="all_systems", help="Create system-specific channels for ALL supported Dell systems.", default=False) parser.add_option("-d", "--delete", action="store_true", dest="delete", help="Delete all unused Dell channels and packages", default=False) @@ -87,7 +87,7 @@ if options.repo == '' and not options.delete: print "! Error: '--repo' must be specified" error = True - if not (options.channel == "rhel4" or options.channel == "rhel5" or options.channel == "rhel6" or options.channel == "sles11"): + if not (options.channel == "rhel4" or options.channel == "rhel5" or options.channel == "rhel6" or options.channel == "sles11" or options.channel == "centos6"): print "! Error: '--channel' must be specified with a valid OS channel." error = True if options.only_systems and options.all_systems and not options.delete: @@ -160,6 +160,12 @@ # 'other_existing_base_channel' : { 'arch' : 'arch_type', 'subdir' : 'subdir within Dell repo' }, 'sles11-sp1-pool-x86_64' : { 'arch' : 'x86_64' , 'subdir' : 'suse11_64' }, } + # CentOS 6 channels + elif options.channel == "centos6": + SUPPORTED_CHANNELS = { + # 'other_existing_base_channel' : { 'arch' : 'arch_type', 'subdir' : 'subdir within Dell repo' }, + 'centos-x86_64-server-6' : { 'arch' : 'x86_64' , 'subdir' : 'rh60_64' }, + } else: # Should not really reach here, but just in case print "You must provide a valid OS channel with '--channel'. Use -h or --help for details."