1 heat_template_version: ocata
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
40 type: ../../../puppet/services/database/redis.yaml
42 EndpointMap: {get_param: EndpointMap}
43 ServiceNetMap: {get_param: ServiceNetMap}
44 DefaultPasswords: {get_param: DefaultPasswords}
48 description: Role data for the Redis API role.
50 service_name: {get_attr: [RedisBase, role_data, service_name]}
53 - {get_attr: [RedisBase, role_data, config_settings]}
54 - redis::daemonize: false
55 step_config: &step_config
56 get_attr: [RedisBase, role_data, step_config]
57 service_config_settings: {get_attr: [RedisBase, role_data, service_config_settings]}
58 # BEGIN DOCKER SETTINGS
60 config_volume: 'redis'
61 # NOTE: we need the exec tag to copy /etc/redis.conf.puppet to
63 # https://github.com/arioch/puppet-redis/commit/1c004143223e660cbd433422ff8194508aab9763
65 step_config: *step_config
66 config_image: &redis_image
69 - [ {get_param: DockerNamespace}, {get_param: DockerRedisImage} ]
71 /var/lib/kolla/config_files/redis.json:
72 command: /usr/bin/redis-server /etc/redis.conf
74 - path: /var/run/redis
86 - /var/lib/kolla/config_files/redis.json:/var/lib/kolla/config_files/config.json:ro
87 - /var/lib/config-data/redis/etc/:/etc/:ro
88 - /etc/localtime:/etc/localtime:ro
91 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
93 - name: create /var/run/redis
98 - name: Stop and disable redis service
100 service: name=redis state=stopped enabled=no