]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler: Disable all repos before subscribing during kickstart 410/head
authorDavid Galloway <dgallowa@redhat.com>
Fri, 7 Sep 2018 13:30:20 +0000 (09:30 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 7 Sep 2018 13:30:20 +0000 (09:30 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/cobbler/templates/snippets/cephlab_rhel_rhsm

index 69cec5e7205a5b949cb31f92e9139ab3c6906be7..d411b79130a20ba7ef48151f334663ceb0e14b65 100644 (file)
@@ -6,6 +6,8 @@ rpm -U /tmp/satellite-ca.rpm
 {% endif %}
 ## Subscribe (These vars will be empty and this snippet won't get run if the vars aren't set like in Sepia)
 subscription-manager register --activationkey={{ subscription_manager_activationkey }} --org={{ subscription_manager_org }}
+## Disable all repos
+subscription-manager repos --disable '*'
 ## Enable repos
 #if $os_version == 'rhel7'
 subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-optional-rpms --enable=rhel-7-server-extras-rpms