Parameterizes Nova API default floating IP pool
authorTim Rozet <trozet@redhat.com>
Thu, 12 Jan 2017 19:56:09 +0000 (14:56 -0500)
committerTim Rozet <trozet@redhat.com>
Thu, 12 Jan 2017 19:56:09 +0000 (14:56 -0500)
This allows a user to modify the parameter based on what name he/she
wants to use for the default neutron external network.

Closes-Bug: 1656079

Change-Id: Iaa245c234aa7e80818d901bc9947ac57cf5e903a
Signed-off-by: Tim Rozet <trozet@redhat.com>
puppet/services/nova-api.yaml

index d2ca841..36ac3e0 100644 (file)
@@ -54,6 +54,10 @@ parameters:
   EnableInternalTLS:
     type: boolean
     default: false
+  NovaDefaultFloatingPool:
+    default: 'public'
+    description: Default pool for floating IP addresses
+    type: string
 
 conditions:
   nova_workers_zero: {equals : [{get_param: NovaWorkers}, 0]}
@@ -102,7 +106,7 @@ outputs:
           nova::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
           nova::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
           nova::api::enabled: true
-          nova::api::default_floating_pool: 'public'
+          nova::api::default_floating_pool: {get_param: NovaDefaultFloatingPool}
           nova::api::sync_db_api: true
           nova::api::enable_proxy_headers_parsing: true
           nova::api::api_bind_address: