1 heat_template_version: pike
4 OpenStack containerized Redis services
9 default: 'tripleoupstream'
13 default: 'centos-binary-redis:latest'
15 DockerRedisConfigImage:
16 description: The container image to use for the redis config_volume
17 default: 'centos-binary-redis:latest'
21 description: Mapping of service endpoint -> protocol. Typically set
22 via parameter_defaults in the resource registry.
26 description: Mapping of service_name -> network name. Typically set
27 via parameter_defaults in the resource registry. This
28 mapping overrides those in ServiceNetMapDefaults.
35 description: Role name on which the service is applied
39 description: Parameters specific to the role
45 type: ../../../puppet/services/database/redis.yaml
47 EndpointMap: {get_param: EndpointMap}
48 ServiceNetMap: {get_param: ServiceNetMap}
49 DefaultPasswords: {get_param: DefaultPasswords}
53 description: Role data for the Redis API role.
55 service_name: {get_attr: [RedisBase, role_data, service_name]}
58 - {get_attr: [RedisBase, role_data, config_settings]}
59 - redis::daemonize: false
60 step_config: &step_config
61 get_attr: [RedisBase, role_data, step_config]
62 service_config_settings: {get_attr: [RedisBase, role_data, service_config_settings]}
63 # BEGIN DOCKER SETTINGS
65 config_volume: 'redis'
66 # NOTE: we need the exec tag to copy /etc/redis.conf.puppet to
68 # https://github.com/arioch/puppet-redis/commit/1c004143223e660cbd433422ff8194508aab9763
70 step_config: *step_config
74 - [ {get_param: DockerNamespace}, {get_param: DockerRedisConfigImage} ]
76 /var/lib/kolla/config_files/redis.json:
77 command: /usr/bin/redis-server /etc/redis.conf
79 - source: "/var/lib/kolla/config_files/src/*"
82 preserve_properties: true
84 - path: /var/run/redis
95 - [ {get_param: DockerNamespace}, {get_param: DockerRedisImage} ]
99 - /var/log/containers/redis:/var/log/redis
100 command: ['/bin/bash', '-c', 'chown -R redis:redis /var/log/redis']
109 - /var/lib/kolla/config_files/redis.json:/var/lib/kolla/config_files/config.json:ro
110 - /var/lib/config-data/puppet-generated/redis/:/var/lib/kolla/config_files/src:ro
111 - /etc/localtime:/etc/localtime:ro
112 - /var/log/containers/redis:/var/log/redis
114 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
116 - name: create persistent directories
121 - /var/log/containers/redis
124 - name: Stop and disable redis service
126 service: name=redis state=stopped enabled=no