1 heat_template_version: pike
4 OpenStack Redis service configured with Puppet
9 description: Mapping of service_name -> network name. Typically set
10 via parameter_defaults in the resource registry. This
11 mapping overrides those in ServiceNetMapDefaults.
18 description: Role name on which the service is applied
22 description: Parameters specific to the role
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
32 type: ./redis-base.yaml
34 ServiceNetMap: {get_param: ServiceNetMap}
35 DefaultPasswords: {get_param: DefaultPasswords}
36 EndpointMap: {get_param: EndpointMap}
37 RoleName: {get_param: RoleName}
38 RoleParameters: {get_param: RoleParameters}
42 description: Role data for the redis role.
47 - get_attr: [RedisBase, role_data, config_settings]
48 - tripleo.redis.firewall_rules:
54 include ::tripleo::profile::base::database::redis
56 - name: Check if redis is deployed
57 command: systemctl is-enabled redis
60 register: redis_enabled
61 - name: "PreUpgrade step0,validation: Check if redis is running"
63 /usr/bin/systemctl show 'redis' --property ActiveState |
65 when: redis_enabled.rc == 0
66 tags: step0,validation
67 - name: Stop redis service
69 when: redis_enabled.rc == 0
70 service: name=redis state=stopped
71 - name: Install redis package if it was disabled
73 yum: name=redis state=latest
74 when: redis_enabled.rc != 0