1 heat_template_version: ocata
4 MongoDb service deployment using puppet
7 #Parameters not used EndpointMap
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.
19 description: Mapping of service endpoint -> protocol. Typically set
20 via parameter_defaults in the resource registry.
24 description: Limit the amount of memory mongodb uses with systemd.
28 description: Fluentd logging configuration for mongodb.
31 path: /var/log/mongodb/mongodb.log
33 /(?<time>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d+\+\d{4})
38 type: ./mongodb-base.yaml
40 ServiceNetMap: {get_param: ServiceNetMap}
41 DefaultPasswords: {get_param: DefaultPasswords}
42 EndpointMap: {get_param: EndpointMap}
46 description: Service mongodb using composable services.
51 logging_source: {get_param: MongoDbLoggingSource}
54 - get_attr: [MongoDbBase, role_data, config_settings]
55 - tripleo::profile::base::database::mongodb::mongodb_replset: {get_attr: [MongoDbBase, aux_parameters, rplset_name]}
56 tripleo::profile::base::database::mongodb::memory_limit: {get_param: MongodbMemoryLimit}
57 mongodb::server::service_manage: True
58 tripleo.mongodb.firewall_rules:
61 '102 mongodb_sharding':
65 # NOTE: bind IP is found in Heat replacing the network name with the
66 # local node IP for the given network; replacement examples
67 # (eg. for internal_api):
69 # internal_api_uri -> [IP]
70 # internal_api_subnet - > IP/CIDR
71 mongodb::server::bind_ip: {get_param: [ServiceNetMap, MongodbNetwork]}
73 include ::tripleo::profile::base::database::mongodb
75 - name: Stop mongodb service
77 service: name=mongod state=stopped
78 - name: Start mongodb service
80 service: name=mongod state=started