change the default satellite tools rpm repo.
authorMike Burns <mburns@redhat.com>
Mon, 16 Nov 2015 17:19:23 +0000 (12:19 -0500)
committerMike Burns <mburns@redhat.com>
Tue, 29 Mar 2016 16:14:22 +0000 (12:14 -0400)
Change-Id: I60ab36b04b8932e4dbee58e21998dc984178b41c
Bugzilla:  https://bugzilla.redhat.com/1275281

extraconfig/pre_deploy/rhel-registration/environment-rhel-registration.yaml
extraconfig/pre_deploy/rhel-registration/rhel-registration.yaml
extraconfig/pre_deploy/rhel-registration/scripts/rhel-registration

index 70437a8..c388358 100644 (file)
@@ -20,3 +20,4 @@ parameter_defaults:
   rhel_reg_user: ""
   rhel_reg_type: ""
   rhel_reg_method: ""
+  rhel_reg_sat_repo: "rhel-7-server-satellite-tools-6.1-rpms"
index a884bda..7c65bd8 100644 (file)
@@ -43,6 +43,8 @@ parameters:
     type: string
   rhel_reg_method:
     type: string
+  rhel_reg_sat_repo:
+    type: string
 
 resources:
 
@@ -68,6 +70,7 @@ resources:
         - name: REG_USER
         - name: REG_TYPE
         - name: REG_METHOD
+        - name: REG_SAT_REPO
       config: {get_file: scripts/rhel-registration}
 
   RHELRegistrationDeployment:
@@ -95,6 +98,7 @@ resources:
         REG_USER: {get_param: rhel_reg_user}
         REG_TYPE: {get_param: rhel_reg_type}
         REG_METHOD: {get_param: rhel_reg_method}
+        REG_SAT_REPO: {get_param: rhel_reg_sat_repo}
 
   RHELUnregistration:
     type: OS::Heat::SoftwareConfig
index 242819b..1c9acd2 100644 (file)
@@ -15,7 +15,7 @@ opts=
 attach_opts=
 sat5_opts=
 repos="repos --enable rhel-7-server-rpms"
-satellite_repo="rhel-7-server-rh-common-rpms"
+satellite_repo=${REG_SAT_REPO}
 if [ -n "${REG_AUTO_ATTACH:-}" ]; then
     opts="$opts --auto-attach"