982b606498b90a0952486272670c3f85ab1543cf
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / database / mongodb.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   MongoDb service deployment using puppet
5
6 parameters:
7   #Parameters not used EndpointMap
8   ServiceNetMap:
9     default: {}
10     description: Mapping of service_name -> network name. Typically set
11                  via parameter_defaults in the resource registry.  This
12                  mapping overrides those in ServiceNetMapDefaults.
13     type: json
14   DefaultPasswords:
15     default: {}
16     type: json
17   EndpointMap:
18     default: {}
19     description: Mapping of service endpoint -> protocol. Typically set
20                  via parameter_defaults in the resource registry.
21     type: json
22
23 resources:
24   MongoDbBase:
25     type: ../../database/mongodb.yaml
26     properties:
27       ServiceNetMap: {get_param: ServiceNetMap}
28       DefaultPasswords: {get_param: DefaultPasswords}
29       EndpointMap: {get_param: EndpointMap}
30
31 outputs:
32   role_data:
33     description: Service mongodb using composable services.
34     value:
35       service_name: mongodb
36       config_settings:
37         map_merge:
38           - get_attr: [MongoDbBase, role_data, config_settings]
39           - tripleo::profile::pacemaker::database::mongodb::mongodb_replset: {get_attr: [MongoDbBase, aux_parameters, rplset_name]}
40             mongodb::server::service_manage: False
41       step_config: |
42         include ::tripleo::profile::pacemaker::database::mongodb