1 heat_template_version: pike
4 OpenStack containerized Redis services
10 DockerRedisConfigImage:
11 description: The container image to use for the redis config_volume
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
20 description: Dictionary packing service data
24 description: Mapping of service_name -> network name. Typically set
25 via parameter_defaults in the resource registry. This
26 mapping overrides those in ServiceNetMapDefaults.
33 description: Role name on which the service is applied
37 description: Parameters specific to the role
43 type: ../../../puppet/services/database/redis.yaml
45 EndpointMap: {get_param: EndpointMap}
46 ServiceData: {get_param: ServiceData}
47 ServiceNetMap: {get_param: ServiceNetMap}
48 DefaultPasswords: {get_param: DefaultPasswords}
52 description: Role data for the Redis API role.
54 service_name: {get_attr: [RedisBase, role_data, service_name]}
57 - {get_attr: [RedisBase, role_data, config_settings]}
58 - redis::daemonize: false
59 step_config: &step_config
60 get_attr: [RedisBase, role_data, step_config]
61 service_config_settings: {get_attr: [RedisBase, role_data, service_config_settings]}
62 # BEGIN DOCKER SETTINGS
64 config_volume: 'redis'
65 # NOTE: we need the exec tag to copy /etc/redis.conf.puppet to
67 # https://github.com/arioch/puppet-redis/commit/1c004143223e660cbd433422ff8194508aab9763
69 step_config: *step_config
70 config_image: {get_param: DockerRedisConfigImage}
72 /var/lib/kolla/config_files/redis.json:
73 command: /usr/bin/redis-server /etc/redis.conf
75 - source: "/var/lib/kolla/config_files/src/*"
78 preserve_properties: true
80 - path: /var/run/redis
88 image: &redis_image {get_param: DockerRedisImage}
92 - /var/log/containers/redis:/var/log/redis
93 command: ['/bin/bash', '-c', 'chown -R redis:redis /var/log/redis']
102 - /var/lib/kolla/config_files/redis.json:/var/lib/kolla/config_files/config.json:ro
103 - /var/lib/config-data/puppet-generated/redis/:/var/lib/kolla/config_files/src:ro
104 - /etc/localtime:/etc/localtime:ro
105 - /var/log/containers/redis:/var/log/redis
107 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
109 - name: create persistent directories
114 - /var/log/containers/redis
117 - name: Stop and disable redis service
119 service: name=redis state=stopped enabled=no