1 heat_template_version: pike
4 OpenStack containerized Redis services
9 default: 'tripleoupstream'
13 default: 'centos-binary-redis:latest'
17 description: Mapping of service endpoint -> protocol. Typically set
18 via parameter_defaults in the resource registry.
22 description: Mapping of service_name -> network name. Typically set
23 via parameter_defaults in the resource registry. This
24 mapping overrides those in ServiceNetMapDefaults.
31 description: Role name on which the service is applied
35 description: Parameters specific to the role
41 type: ../../../puppet/services/database/redis.yaml
43 EndpointMap: {get_param: EndpointMap}
44 ServiceNetMap: {get_param: ServiceNetMap}
45 DefaultPasswords: {get_param: DefaultPasswords}
49 description: Role data for the Redis API role.
51 service_name: {get_attr: [RedisBase, role_data, service_name]}
54 - {get_attr: [RedisBase, role_data, config_settings]}
55 - redis::daemonize: false
56 step_config: &step_config
57 get_attr: [RedisBase, role_data, step_config]
58 service_config_settings: {get_attr: [RedisBase, role_data, service_config_settings]}
59 # BEGIN DOCKER SETTINGS
61 config_volume: 'redis'
62 # NOTE: we need the exec tag to copy /etc/redis.conf.puppet to
64 # https://github.com/arioch/puppet-redis/commit/1c004143223e660cbd433422ff8194508aab9763
66 step_config: *step_config
67 config_image: &redis_image
70 - [ {get_param: DockerNamespace}, {get_param: DockerRedisImage} ]
72 /var/lib/kolla/config_files/redis.json:
73 command: /usr/bin/redis-server /etc/redis.conf
75 - path: /var/run/redis
87 - /var/log/containers/redis:/var/log/redis
88 command: ['/bin/bash', '-c', 'chown -R redis:redis /var/log/redis']
97 - /var/lib/kolla/config_files/redis.json:/var/lib/kolla/config_files/config.json:ro
98 - /var/lib/config-data/redis/etc/redis.conf:/etc/redis.conf:ro
99 - /etc/localtime:/etc/localtime:ro
100 - /var/log/containers/redis:/var/log/redis
102 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
104 - name: create persistent directories
109 - /var/log/containers/redis
112 - name: Stop and disable redis service
114 service: name=redis state=stopped enabled=no