6885cfd63e38fc13b8ca059f007da9784608bcf9
[apex-tripleo-heat-templates.git] / puppet / services / 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   EndpointMap:
9     default: {}
10     description: Mapping of service endpoint -> protocol. Typically set
11                  via parameter_defaults in the resource registry.
12     type: json
13
14 resources:
15   MongoDbBase:
16     type: ./mongodb-base.yaml
17
18 outputs:
19   role_data:
20     description: Service mongodb using composable services.
21     value:
22       service_name: mongodb
23       config_settings:
24         map_merge:
25           - get_attr: [MongoDbBase, role_data, config_settings]
26           - tripleo::profile::base::database::mongodb::mongodb_replset: {get_attr: [MongoDbBase, aux_parameters, rplset_name]}
27             mongodb::server::service_manage: True
28             tripleo.mongodb.firewall_rules:
29               '101 mongodb_config':
30                 dport: 27019
31               '102 mongodb_sharding':
32                 dport: 27018
33               '103 mongod':
34                 dport: 27017
35       step_config: |
36         include ::tripleo::profile::base::database::mongodb