2fab0eb6b0a465d74e6f97a19935897b28ddc05c
[apex-tripleo-heat-templates.git] / puppet / services / database / redis-base.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Redis service configured with Puppet
5
6 parameters:
7   RedisPassword:
8     description: The password for Redis
9     type: string
10     hidden: true
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   EndpointMap:
21     default: {}
22     description: Mapping of service endpoint -> protocol. Typically set
23                  via parameter_defaults in the resource registry.
24     type: json
25
26 outputs:
27   role_data:
28     description: Role data for the redis role.
29     value:
30       service_name: redis_base
31       config_settings:
32         redis::requirepass: {get_param: RedisPassword}
33         redis::masterauth: {get_param: RedisPassword}
34         redis::sentinel_auth_pass: {get_param: RedisPassword}
35         # NOTE: bind IP is found in Heat replacing the network name with the local node IP
36         # for the given network; replacement examples (eg. for internal_api):
37         # internal_api -> IP
38         # internal_api_uri -> [IP]
39         # internal_api_subnet - > IP/CIDR
40         redis::bind: {get_param: [ServiceNetMap, RedisNetwork]}
41         redis::port: 6379
42         redis::sentinel::master_name: "%{hiera('bootstrap_nodeid')}"
43         redis::sentinel::redis_host: "%{hiera('bootstrap_nodeid_ip')}"
44         redis::sentinel::notification_script: '/usr/local/bin/redis-notifications.sh'