Map Ceilometer services to isolated networks
authorDan Sneddon <dsneddon@redhat.com>
Tue, 26 May 2015 19:17:52 +0000 (12:17 -0700)
committerDan Sneddon <dsneddon@redhat.com>
Tue, 26 May 2015 19:17:52 +0000 (12:17 -0700)
This change adds the parameters to specify which networks the Ceilometer
and MongoDB servers listen on. It is set to the internal_api network if
present, and reverts to the default Undercloud 'ctlplane' network if not.

Change-Id: Ib646e4a34496966f9b1d454f04d07bf95543517f

overcloud-resource-registry-puppet.yaml
puppet/controller-puppet.yaml

index 7b35c2f..9c5ed1b 100644 (file)
@@ -66,3 +66,5 @@ parameter_defaults:
   # Mapping of service_name -> network name.
   ServiceNetMap:
     NeutronLocalIp: tenant
+    CeilometerApiNetwork: internal_api
+    MongoDbNetwork: internal_api
index 3e522df..0e5ab11 100644 (file)
@@ -802,7 +802,7 @@ resources:
                 keystone::admin_bind_host: {get_input: controller_host}
                 keystone::debug: {get_input: debug}
                 # MongoDB
-                mongodb::server::bind_ip: {get_input: controller_host}
+                mongodb::server::bind_ip: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, MongoDbNetwork]}]}
                 # MySQL
                 admin_password: {get_input: admin_password}
                 enable_galera: {get_input: enable_galera}
@@ -854,7 +854,7 @@ resources:
                 ceilometer::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
                 ceilometer::rabbit_port: {get_input: rabbit_client_port}
                 ceilometer::debug: {get_input: debug}
-                ceilometer::api::host: {get_input: controller_host}
+                ceilometer::api::host: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, CeilometerApiNetwork]}]}
                 ceilometer::api::keystone_password: {get_input: ceilometer_password}
                 ceilometer::api::keystone_auth_uri: {get_input: keystone_auth_uri}
                 ceilometer::api::keystone_identity_uri: {get_input: keystone_identity_uri}