89fa80655af3fd74129199e29717817ab081cb3d
[apex-tripleo-heat-templates.git] / puppet / services / database / redis-base.yaml
1 heat_template_version: pike
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   RedisFDLimit:
12     description: Configure Redis FD limit
13     type: string
14     default: 10240
15   ServiceNetMap:
16     default: {}
17     description: Mapping of service_name -> network name. Typically set
18                  via parameter_defaults in the resource registry.  This
19                  mapping overrides those in ServiceNetMapDefaults.
20     type: json
21   DefaultPasswords:
22     default: {}
23     type: json
24   RoleName:
25     default: ''
26     description: Role name on which the service is applied
27     type: string
28   RoleParameters:
29     default: {}
30     description: Parameters specific to the role
31     type: json
32   EndpointMap:
33     default: {}
34     description: Mapping of service endpoint -> protocol. Typically set
35                  via parameter_defaults in the resource registry.
36     type: json
37
38 outputs:
39   role_data:
40     description: Role data for the redis role.
41     value:
42       service_name: redis_base
43       config_settings:
44         redis::requirepass: {get_param: RedisPassword}
45         redis::masterauth: {get_param: RedisPassword}
46         redis::sentinel_auth_pass: {get_param: RedisPassword}
47         # NOTE: bind IP is found in Heat replacing the network name with the local node IP
48         # for the given network; replacement examples (eg. for internal_api):
49         # internal_api -> IP
50         # internal_api_uri -> [IP]
51         # internal_api_subnet - > IP/CIDR
52         redis::bind: {get_param: [ServiceNetMap, RedisNetwork]}
53         redis::port: 6379
54         redis::sentinel::master_name: "%{hiera('bootstrap_nodeid')}"
55         redis::sentinel::redis_host: "%{hiera('bootstrap_nodeid_ip')}"
56         redis::sentinel::notification_script: '/usr/local/bin/redis-notifications.sh'
57         redis::sentinel::sentinel_bind: {get_param: [ServiceNetMap, RedisNetwork]}
58         redis::ulimit: {get_param: RedisFDLimit}