Added updates repos for CentOS
This commit is contained in:
		| @@ -23,8 +23,12 @@ spacewalk_repo_info: | |||||||
|   - {name: 'CentOS_7', label: 'centos-7', repo: 'CentOS_7', repo_url: 'http://mirror.ox.ac.uk/sites/mirror.centos.org/7/os/x86_64/', arch: 'x86_64', checksum: 'sha256'} |   - {name: 'CentOS_7', label: 'centos-7', repo: 'CentOS_7', repo_url: 'http://mirror.ox.ac.uk/sites/mirror.centos.org/7/os/x86_64/', arch: 'x86_64', checksum: 'sha256'} | ||||||
|  |  | ||||||
| spacewalk_child_repo_info: | spacewalk_child_repo_info: | ||||||
|   - {name: 'CentOS_7_epel', label: 'centos-7-epel', parent: 'centos-7', repo: 'CentOS_7_epel', repo_url: 'http://anorien.csc.warwick.ac.uk/mirrors/epel/7/x86_64/', arch: 'x86_64', checksum: 'sha256'} |   - {name: 'CentOS_7_epel', label: 'centos-7-epel', parent: 'centos-7', repo: 'CentOS_7_epel',  activationkey: '1-centos-7-epel', repo_url: 'http://anorien.csc.warwick.ac.uk/mirrors/epel/7/x86_64/', arch: 'x86_64', checksum: 'sha256'} | ||||||
|   - {name: 'CentOS_6_epel', label: 'centos-6-epel', parent: 'centos-6', repo: 'CentOS_6_epel', repo_url: 'http://anorien.csc.warwick.ac.uk/mirrors/epel/6/x86_64/', arch: 'x86_64', checksum: 'sha256'} |   - {name: 'CentOS_6_epel', label: 'centos-6-epel', parent: 'centos-6', repo: 'CentOS_6_epel', activationkey: '1-centos-6-epel', repo_url: 'http://anorien.csc.warwick.ac.uk/mirrors/epel/6/x86_64/', arch: 'x86_64', checksum: 'sha256'} | ||||||
|  |   - {name: 'CentOS_6_updates', label: 'centos-6-updates', parent: 'centos-6', repo: 'CentOS_6_updates', activationkey: '1-centos-6-epel', repo_url: 'http://mirror.centos.org/centos/6/updates/x86_64/', arch: 'x86_64', checksum: 'sha256'} | ||||||
|  |   - {name: 'CentOS_7_updates', label: 'centos-7-updates', parent: 'centos-7', repo: 'CentOS_7_updates', activationkey: '1-centos-7-epel', repo_url: 'http://mirror.centos.org/centos/7/updates/x86_64/', arch: 'x86_64', checksum: 'sha256'} | ||||||
|  |   - {name: 'CentOS_6_extras', label: 'centos-6-extras', parent: 'centos-6', repo: 'CentOS_6_extras', activationkey: '1-centos-6-epel', repo_url: 'http://mirror.centos.org/centos/6/extras/x86_64/', arch: 'x86_64', checksum: 'sha256'} | ||||||
|  |   - {name: 'CentOS_7_extras', label: 'centos-7-extras', parent: 'centos-7', repo: 'CentOS_7_extras', activationkey: '1-centos-7-epel', repo_url: 'http://mirror.centos.org/centos/7/extras/x86_64/', arch: 'x86_64', checksum: 'sha256'} | ||||||
|  |  | ||||||
| spacewalk_deb_repo_info: | spacewalk_deb_repo_info: | ||||||
|   - {name: 'Ubuntu_Trusty_14_04', label: 'ubuntu-1404', repo: 'Ubuntu1404', repo_url: 'http://de.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/', arch: 'amd64-deb', checksum: 'sha256'} |   - {name: 'Ubuntu_Trusty_14_04', label: 'ubuntu-1404', repo: 'Ubuntu1404', repo_url: 'http://de.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/', arch: 'amd64-deb', checksum: 'sha256'} | ||||||
|   | |||||||
| @@ -32,11 +32,11 @@ | |||||||
|   with_items: "{{ spacewalk_repo_info | union(spacewalk_child_repo_info) }}" |   with_items: "{{ spacewalk_repo_info | union(spacewalk_child_repo_info) }}" | ||||||
|  |  | ||||||
| - name: Associate child channels with activationkeys | - name: Associate child channels with activationkeys | ||||||
|   command: spacecmd --user=admin --password={{spacewalk_admin_password}} -- activationkey_addchildchannels 1-{{item.label}}  {{item.label}} |   command: spacecmd --user=admin --password={{spacewalk_admin_password}} -- activationkey_addchildchannels {{item.activationkey}}  {{item.label}} | ||||||
|   ignore_errors: true |   ignore_errors: true | ||||||
|   with_items: "{{spacewalk_child_repo_info}}" |   with_items: "{{spacewalk_child_repo_info}}" | ||||||
|  |  | ||||||
|  |  | ||||||
| - name: Set sync repo schedules | - name: Set sync repo schedules | ||||||
|   command: spacecmd --user=admin --password={{spacewalk_admin_password}} -- softwarechannel_setsyncschedule {{item.label}} 0 30 3 ? * * |   command: spacecmd --user=admin --password={{spacewalk_admin_password}} -- softwarechannel_setsyncschedule {{item.label}} 0 30 3 ? * * | ||||||
|   with_items: "{{spacewalk_repo_info}}" |   with_items: "{{ spacewalk_repo_info | union(spacewalk_child_repo_info) }}" | ||||||
		Reference in New Issue
	
	Block a user