1 heat_template_version: pike
4 OpenStack Redis service configured with Puppet
9 description: Dictionary packing service data
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.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
36 type: ./redis-base.yaml
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}
47 description: Role data for the redis role.
52 - get_attr: [RedisBase, role_data, config_settings]
53 - tripleo.redis.firewall_rules:
59 include ::tripleo::profile::base::database::redis
61 - name: Check if redis is deployed
62 command: systemctl is-enabled redis
65 register: redis_enabled
66 - name: "PreUpgrade step0,validation: Check if redis is running"
68 /usr/bin/systemctl show 'redis' --property ActiveState |
70 when: redis_enabled.rc == 0
71 tags: step0,validation
72 - name: Stop redis service
74 when: redis_enabled.rc == 0
75 service: name=redis state=stopped
76 - name: Install redis package if it was disabled
78 yum: name=redis state=latest
79 when: redis_enabled.rc != 0