1 heat_template_version: pike
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: Role name on which the service is applied
23 description: Parameters specific to the role
27 description: Mapping of service endpoint -> protocol. Typically set
28 via parameter_defaults in the resource registry.
32 description: Limit the amount of memory mongodb uses with systemd.
36 description: Fluentd logging configuration for mongodb.
39 path: /var/log/mongodb/mongodb.log
41 /(?<time>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d+\+\d{4})
46 type: ./mongodb-base.yaml
48 ServiceNetMap: {get_param: ServiceNetMap}
49 DefaultPasswords: {get_param: DefaultPasswords}
50 EndpointMap: {get_param: EndpointMap}
51 RoleName: {get_param: RoleName}
52 RoleParameters: {get_param: RoleParameters}
56 description: Service mongodb using composable services.
61 logging_source: {get_param: MongoDbLoggingSource}
64 - get_attr: [MongoDbBase, role_data, config_settings]
65 - tripleo::profile::base::database::mongodb::mongodb_replset: {get_attr: [MongoDbBase, aux_parameters, rplset_name]}
66 tripleo::profile::base::database::mongodb::memory_limit: {get_param: MongodbMemoryLimit}
67 mongodb::server::service_manage: True
68 tripleo.mongodb.firewall_rules:
71 '102 mongodb_sharding':
75 # NOTE: bind IP is found in Heat replacing the network name with the
76 # local node IP for the given network; replacement examples
77 # (eg. for internal_api):
79 # internal_api_uri -> [IP]
80 # internal_api_subnet - > IP/CIDR
81 mongodb::server::bind_ip: {get_param: [ServiceNetMap, MongodbNetwork]}
83 include ::tripleo::profile::base::database::mongodb
85 - name: Stop mongodb service
87 service: name=mongod state=stopped
88 - name: Start mongodb service
90 service: name=mongod state=started