Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / database / redis.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Redis service configured with Puppet
5
6 parameters:
7   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
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   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33
34 resources:
35   RedisBase:
36     type: ../../database/redis.yaml
37     properties:
38       ServiceData: {get_param: ServiceData}
39       ServiceNetMap: {get_param: ServiceNetMap}
40       DefaultPasswords: {get_param: DefaultPasswords}
41       EndpointMap: {get_param: EndpointMap}
42       RoleName: {get_param: RoleName}
43       RoleParameters: {get_param: RoleParameters}
44
45 outputs:
46   role_data:
47     description: Role data for the Redis pacemaker role.
48     value:
49       service_name: redis
50       config_settings:
51         map_merge:
52           - get_attr: [RedisBase, role_data, config_settings]
53           - redis::service_manage: false
54             redis::notify_service: false
55             redis::managed_by_cluster_manager: true
56             tripleo::profile::pacemaker::database::redis::tls_proxy_bind_ip:
57               get_param: [ServiceNetMap, RedisNetwork]
58             tripleo::profile::pacemaker::database::redis::tls_proxy_fqdn:
59               str_replace:
60                 template:
61                   "%{hiera('fqdn_$NETWORK')}"
62                 params:
63                   $NETWORK: {get_param: [ServiceNetMap, RedisNetwork]}
64             tripleo::profile::pacemaker::database::redis::tls_proxy_port: 6379
65       step_config: |
66         include ::tripleo::profile::pacemaker::database::redis
67       metadata_settings:
68         get_attr: [RedisBase, role_data, metadata_settings]