9755c924be
For the CentOS 7 to 8 transition, we will have a period where both CentOS 7 and 8 images are available. We differentiate these images via a tag - the CentOS 8 images will have a tag of train-centos8 (or master-centos8 temporarily). To achieve this, and maintain backwards compatibility for the openstack_release variable, we introduce a new 'openstack_tag' variable. This variable is based on openstack_release, but has a suffix of 'openstack_tag_suffix', which is empty except on CentOS 8 where it has a value of '-centos8'. Change-Id: I12ce4661afb3c255136cdc1aabe7cbd25560d625 Partially-Implements: blueprint centos-rhel-8
91 lines
3.3 KiB
YAML
91 lines
3.3 KiB
YAML
---
|
|
project_name: "common"
|
|
|
|
# Due to the way we do our inventory, ansible does not pick up on the fact that
|
|
# this role has already run. We can track what has run with host facts.
|
|
common_run: False
|
|
|
|
common_services:
|
|
fluentd:
|
|
container_name: fluentd
|
|
enabled: "{{ enable_fluentd | bool }}"
|
|
image: "{{ fluentd_image_full }}"
|
|
environment:
|
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
volumes: "{{ fluentd_default_volumes + fluentd_extra_volumes }}"
|
|
dimensions: "{{ fluentd_dimensions }}"
|
|
kolla-toolbox:
|
|
container_name: kolla_toolbox
|
|
enabled: True
|
|
image: "{{ kolla_toolbox_image_full }}"
|
|
environment:
|
|
ANSIBLE_NOCOLOR: "1"
|
|
ANSIBLE_LIBRARY: "/usr/share/ansible"
|
|
privileged: True
|
|
volumes: "{{ kolla_toolbox_default_volumes + kolla_toolbox_extra_volumes }}"
|
|
dimensions: "{{ kolla_toolbox_dimensions }}"
|
|
# DUMMY_ENVIRONMENT is needed because empty environment is not supported
|
|
cron:
|
|
container_name: cron
|
|
enabled: True
|
|
image: "{{ cron_image_full }}"
|
|
environment:
|
|
DUMMY_ENVIRONMENT: kolla_useless_env
|
|
volumes: "{{ cron_default_volumes + cron_extra_volumes }}"
|
|
dimensions: "{{ cron_dimensions }}"
|
|
|
|
#######################
|
|
# TLS and authenication
|
|
#######################
|
|
|
|
fluentd_elasticsearch_path: ""
|
|
fluentd_elasticsearch_scheme: "http"
|
|
fluentd_elasticsearch_user: ""
|
|
fluentd_elasticsearch_password: ""
|
|
fluentd_elasticsearch_ssl_version: "TLSv1_2"
|
|
fluentd_elasticsearch_ssl_verify: "true"
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
common_install_type: "{{ kolla_install_type }}"
|
|
common_tag: "{{ openstack_tag }}"
|
|
|
|
cron_dimensions: "{{ default_container_dimensions }}"
|
|
kolla_toolbox_dimensions: "{{ default_container_dimensions }}"
|
|
fluentd_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
kolla_toolbox_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ common_install_type }}-kolla-toolbox"
|
|
kolla_toolbox_tag: "{{ common_tag }}"
|
|
kolla_toolbox_image_full: "{{ kolla_toolbox_image }}:{{ kolla_toolbox_tag }}"
|
|
|
|
cron_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ common_install_type }}-cron"
|
|
cron_tag: "{{ common_tag }}"
|
|
cron_image_full: "{{ cron_image }}:{{ cron_tag }}"
|
|
|
|
fluentd_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ common_install_type }}-fluentd"
|
|
fluentd_tag: "{{ common_tag }}"
|
|
fluentd_image_full: "{{ fluentd_image }}:{{ fluentd_tag }}"
|
|
|
|
syslog_swift_facility: "local0"
|
|
syslog_haproxy_facility: "local1"
|
|
|
|
kolla_toolbox_default_volumes:
|
|
- "{{ node_config_directory }}/kolla-toolbox/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "/dev/:/dev/"
|
|
- "/run/:/run/:shared"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
cron_default_volumes:
|
|
- "{{ node_config_directory }}/cron/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
fluentd_default_volumes:
|
|
- "{{ node_config_directory }}/fluentd/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "fluentd_data:/var/lib/fluentd/data/"
|
|
kolla_toolbox_extra_volumes: "{{ default_extra_volumes }}"
|
|
cron_extra_volumes: "{{ default_extra_volumes }}"
|
|
fluentd_extra_volumes: "{{ default_extra_volumes }}"
|