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: Dictionary packing service data
30 description: Mapping of service_name -> network name. Typically set
31 via parameter_defaults in the resource registry. This
32 mapping overrides those in ServiceNetMapDefaults.
39 description: Role name on which the service is applied
43 description: Parameters specific to the role
49 type: ../../../puppet/services/database/redis.yaml
51 EndpointMap: {get_param: EndpointMap}
52 ServiceData: {get_param: ServiceData}
53 ServiceNetMap: {get_param: ServiceNetMap}
54 DefaultPasswords: {get_param: DefaultPasswords}
58 description: Role data for the Redis API role.
60 service_name: {get_attr: [RedisBase, role_data, service_name]}
63 - {get_attr: [RedisBase, role_data, config_settings]}
64 - redis::daemonize: false
65 step_config: &step_config
66 get_attr: [RedisBase, role_data, step_config]
67 service_config_settings: {get_attr: [RedisBase, role_data, service_config_settings]}
68 # BEGIN DOCKER SETTINGS
70 config_volume: 'redis'
71 # NOTE: we need the exec tag to copy /etc/redis.conf.puppet to
73 # https://github.com/arioch/puppet-redis/commit/1c004143223e660cbd433422ff8194508aab9763
75 step_config: *step_config
79 - [ {get_param: DockerNamespace}, {get_param: DockerRedisConfigImage} ]
81 /var/lib/kolla/config_files/redis.json:
82 command: /usr/bin/redis-server /etc/redis.conf
84 - source: "/var/lib/kolla/config_files/src/*"
87 preserve_properties: true
89 - path: /var/run/redis
100 - [ {get_param: DockerNamespace}, {get_param: DockerRedisImage} ]
104 - /var/log/containers/redis:/var/log/redis
105 command: ['/bin/bash', '-c', 'chown -R redis:redis /var/log/redis']
114 - /var/lib/kolla/config_files/redis.json:/var/lib/kolla/config_files/config.json:ro
115 - /var/lib/config-data/puppet-generated/redis/:/var/lib/kolla/config_files/src:ro
116 - /etc/localtime:/etc/localtime:ro
117 - /var/log/containers/redis:/var/log/redis
119 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
121 - name: create persistent directories
126 - /var/log/containers/redis
129 - name: Stop and disable redis service
131 service: name=redis state=stopped enabled=no