Merge "Pass ServiceNetMap to services"
[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   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 outputs:
24   role_data:
25     description: Role data for the redis role.
26     value:
27       service_name: redis_base
28       config_settings:
29         redis::requirepass: {get_param: RedisPassword}
30         redis::masterauth: {get_param: RedisPassword}
31         redis::sentinel_auth_pass: {get_param: RedisPassword}
32         redis::port: 6379
33         redis::sentinel::master_name: '"%{hiera(\"bootstrap_nodeid\")}"'
34         redis::sentinel::redis_host: '"%{hiera(\"bootstrap_nodeid_ip\")}"'
35         redis::sentinel::notification_script: '/usr/local/bin/redis-notifications.sh'
36         tripleo::loadbalancer::redis_password: {get_param: RedisPassword}