cc555c4196
This allows the install type for the project to be different than kolla_install_type This can be used to avoid hitting bug 1786238, since kuryr only supports the source type. Change-Id: I2b6fc85bac092b1614bccfd22bee48442c55dda4 Closes-Bug: #1786238
46 lines
1.7 KiB
YAML
46 lines
1.7 KiB
YAML
---
|
|
project_name: "redis"
|
|
|
|
redis_services:
|
|
redis:
|
|
container_name: redis
|
|
group: redis
|
|
enabled: true
|
|
image: "{{ redis_image_full }}"
|
|
volumes: "{{ redis_default_volumes + redis_extra_volumes }}"
|
|
dimensions: "{{ redis_dimensions }}"
|
|
redis-sentinel:
|
|
container_name: redis_sentinel
|
|
group: redis
|
|
enabled: true
|
|
image: "{{ redis_sentinel_image_full }}"
|
|
volumes: "{{ redis_sentinel_default_volumes + redis_sentinel_extra_volumes }}"
|
|
dimensions: "{{ redis_sentinel_dimensions }}"
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
redis_install_type: "{{ kolla_install_type }}"
|
|
redis_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ redis_install_type }}-redis"
|
|
redis_tag: "{{ openstack_release }}"
|
|
redis_image_full: "{{ redis_image }}:{{ redis_tag }}"
|
|
|
|
redis_sentinel_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ redis_install_type }}-redis-sentinel"
|
|
redis_sentinel_tag: "{{ openstack_release }}"
|
|
redis_sentinel_image_full: "{{ redis_sentinel_image }}:{{ redis_tag }}"
|
|
redis_dimensions: "{{ default_container_dimensions }}"
|
|
redis_sentinel_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
redis_default_volumes:
|
|
- "{{ node_config_directory }}/redis/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ project_name }}:/var/lib/redis/"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
redis_sentinel_default_volumes:
|
|
- "{{ node_config_directory }}/redis-sentinel/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
redis_extra_volumes: "{{ default_extra_volumes }}"
|
|
redis_sentinel_extra_volumes: "{{ default_extra_volumes }}"
|