Move setting of Glance's keystone region to API profile
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Mon, 8 Aug 2016 10:34:15 +0000 (13:34 +0300)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Mon, 8 Aug 2016 13:58:06 +0000 (16:58 +0300)
This is not necessary in the controller.yaml and is more appropriate
in the profile.

Change-Id: Ie2badbd87eabb8404acff77e9aa5d091fbdd1499

puppet/controller.yaml
puppet/services/glance-api.yaml

index f641014..12af7d3 100644 (file)
@@ -678,7 +678,6 @@ resources:
                 # Glance
                 glance::api::bind_host: {get_input: glance_api_network}
                 glance::registry::bind_host: {get_input: glance_registry_network}
-                glance::keystone::auth::region: {get_input: keystone_region}
 
                 # Heat
                 heat::api::bind_host: {get_input: heat_api_network}
index 9906578..bb14546 100644 (file)
@@ -60,6 +60,10 @@ parameters:
         Rabbit client subscriber parameter to specify
         an SSL connection to the RabbitMQ host.
     type: string
+  KeystoneRegion:
+    type: string
+    default: 'regionOne'
+    description: Keystone region for endpoint
 
 outputs:
   role_data:
@@ -106,6 +110,7 @@ outputs:
         glance::keystone::auth::internal_url: {get_param: [EndpointMap, GlanceInternal, uri]}
         glance::keystone::auth::admin_url: {get_param: [EndpointMap, GlanceAdmin, uri]}
         glance::keystone::auth::password: {get_param: GlancePassword }
+        glance::keystone::auth::region: {get_param: KeystoneRegion}
         glance::registry::db::database_db_max_retries: -1
         glance::registry::db::database_max_retries: -1
         tripleo.glance_api.firewall_rules: