Pass ServiceNetMap to services
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / database / mongodb.yaml
index c09f93a..b53d9c3 100644 (file)
@@ -5,6 +5,12 @@ description: >
 
 parameters:
   #Parameters not used EndpointMap
+  ServiceNetMap:
+    default: {}
+    description: Mapping of service_name -> network name. Typically set
+                 via parameter_defaults in the resource registry.  This
+                 mapping overrides those in ServiceNetMapDefaults.
+    type: json
   EndpointMap:
     default: {}
     description: Mapping of service endpoint -> protocol. Typically set
@@ -14,6 +20,9 @@ parameters:
 resources:
   MongoDbBase:
     type: ../../database/mongodb-base.yaml
+    properties:
+      ServiceNetMap: {get_param: ServiceNetMap}
+      EndpointMap: {get_param: EndpointMap}
 
 outputs:
   role_data: