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}
50 RoleName: {get_param: RoleName}
51 RoleParameters: {get_param: RoleParameters}
55 description: Role data for the Redis API role.
57 service_name: {get_attr: [RedisBase, role_data, service_name]}
60 - {get_attr: [RedisBase, role_data, config_settings]}
61 - redis::service_manage: false
62 redis::notify_service: false
63 redis::managed_by_cluster_manager: true
64 tripleo::profile::pacemaker::database::redis_bundle::redis_docker_image: &redis_image
67 - - {get_param: DockerNamespace}
68 - {get_param: DockerRedisImage}
71 service_config_settings: {get_attr: [RedisBase, role_data, service_config_settings]}
72 # BEGIN DOCKER SETTINGS
74 config_volume: 'redis'
75 # NOTE: we need the exec tag to copy /etc/redis.conf.puppet to
77 # https://github.com/arioch/puppet-redis/commit/1c004143223e660cbd433422ff8194508aab9763
80 get_attr: [RedisBase, role_data, step_config]
81 config_image: &redis_config_image
84 - [ {get_param: DockerNamespace}, {get_param: DockerRedisConfigImage} ]
86 /var/lib/kolla/config_files/redis.json:
87 command: /usr/sbin/pacemaker_remoted
89 - dest: /etc/libqb/force-filesystem-sockets
94 - path: /var/run/redis
97 - path: /var/lib/redis
100 - path: /var/log/redis
110 config_volume: 'redis_init_bundle'
118 - - "cp -a /tmp/puppet-etc/* /etc/puppet; echo '{\"step\": 2}' > /etc/puppet/hieradata/docker.json"
119 - "FACTER_uuid=docker puppet apply --tags file,file_line,concat,augeas,TAGS -v -e 'CONFIG'"
121 TAGS: 'pacemaker::resource::bundle,pacemaker::property,pacemaker::resource::ocf,pacemaker::constraint::order,pacemaker::constraint::colocation'
122 CONFIG: 'include ::tripleo::profile::base::pacemaker;include ::tripleo::profile::pacemaker::database::redis_bundle'
123 image: *redis_config_image
125 - /etc/hosts:/etc/hosts:ro
126 - /etc/localtime:/etc/localtime:ro
127 - /etc/puppet:/tmp/puppet-etc:ro
128 - /usr/share/openstack-puppet/modules:/usr/share/openstack-puppet/modules:ro
129 - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
130 - /dev/shm:/dev/shm:rw
132 - name: create /var/run/redis
136 - name: create /var/log/redis
140 - name: create /var/lib/redis
145 - name: Stop and disable redis service
147 service: name=redis state=stopped enabled=no