4b5df0d866
Some services look for /etc/timezone on Debian/Ubuntu, so we should introduce it to the containers. In addition, added prechecks for /etc/localtime and /etc/timezone. Closes-Bug: #1821592 Change-Id: I9fef14643d1bcc7eee9547eb87fa1fb436d8a6b3
144 lines
5.9 KiB
YAML
144 lines
5.9 KiB
YAML
---
|
|
project_name: "trove"
|
|
|
|
trove_services:
|
|
trove-api:
|
|
container_name: trove_api
|
|
group: trove-api
|
|
enabled: true
|
|
image: "{{ trove_api_image_full }}"
|
|
volumes: "{{ trove_api_default_volumes + trove_api_extra_volumes }}"
|
|
dimensions: "{{ trove_api_dimensions }}"
|
|
haproxy:
|
|
trove_api:
|
|
enabled: "{{ enable_trove }}"
|
|
mode: "http"
|
|
external: false
|
|
port: "{{ trove_api_port }}"
|
|
trove_api_external:
|
|
enabled: "{{ enable_trove }}"
|
|
mode: "http"
|
|
external: true
|
|
port: "{{ trove_api_port }}"
|
|
trove-conductor:
|
|
container_name: trove_conductor
|
|
group: trove-conductor
|
|
enabled: true
|
|
image: "{{ trove_conductor_image_full }}"
|
|
volumes: "{{ trove_conductor_default_volumes + trove_conductor_extra_volumes }}"
|
|
dimensions: "{{ trove_conductor_dimensions }}"
|
|
trove-taskmanager:
|
|
container_name: trove_taskmanager
|
|
group: trove-taskmanager
|
|
enabled: true
|
|
image: "{{ trove_taskmanager_image_full }}"
|
|
volumes: "{{ trove_taskmanager_default_volumes + trove_taskmanager_extra_volumes }}"
|
|
dimensions: "{{ trove_taskmanager_dimensions }}"
|
|
|
|
|
|
####################
|
|
# Database
|
|
####################
|
|
trove_database_name: "trove"
|
|
trove_database_user: "{% if use_preconfigured_databases | bool and use_common_mariadb_user | bool %}{{ database_user }}{% else %}trove{% endif %}"
|
|
trove_database_address: "{{ database_address | put_address_in_context('url') }}:{{ database_port }}"
|
|
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
trove_install_type: "{{ kolla_install_type }}"
|
|
trove_tag: "{{ openstack_tag }}"
|
|
|
|
trove_conductor_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ trove_install_type }}-trove-conductor"
|
|
trove_conductor_tag: "{{ trove_tag }}"
|
|
trove_conductor_image_full: "{{ trove_conductor_image }}:{{ trove_conductor_tag }}"
|
|
|
|
trove_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ trove_install_type }}-trove-api"
|
|
trove_api_tag: "{{ trove_tag }}"
|
|
trove_api_image_full: "{{ trove_api_image }}:{{ trove_api_tag }}"
|
|
|
|
trove_taskmanager_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ trove_install_type }}-trove-taskmanager"
|
|
trove_taskmanager_tag: "{{ trove_tag }}"
|
|
trove_taskmanager_image_full: "{{ trove_taskmanager_image }}:{{ trove_taskmanager_tag }}"
|
|
|
|
trove_api_dimensions: "{{ default_container_dimensions }}"
|
|
trove_conductor_dimensions: "{{ default_container_dimensions }}"
|
|
trove_taskmanager_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
trove_api_default_volumes:
|
|
- "{{ node_config_directory }}/trove-api/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if kolla_base_distro in ['debian', 'ubuntu'] else '' }}"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "{{ kolla_dev_repos_directory ~ '/trove/trove:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/trove' if trove_dev_mode | bool else '' }}"
|
|
- "trove:/var/lib/trove/"
|
|
trove_conductor_default_volumes:
|
|
- "{{ node_config_directory }}/trove-conductor/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if kolla_base_distro in ['debian', 'ubuntu'] else '' }}"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "{{ kolla_dev_repos_directory ~ '/trove/trove:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/trove' if trove_dev_mode | bool else '' }}"
|
|
- "trove:/var/lib/trove/"
|
|
trove_taskmanager_default_volumes:
|
|
- "{{ node_config_directory }}/trove-taskmanager/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if kolla_base_distro in ['debian', 'ubuntu'] else '' }}"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "{{ kolla_dev_repos_directory ~ '/trove/trove:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/trove' if trove_dev_mode | bool else '' }}"
|
|
- "trove:/var/lib/trove/"
|
|
|
|
trove_extra_volumes: "{{ default_extra_volumes }}"
|
|
trove_api_extra_volumes: "{{ trove_extra_volumes }}"
|
|
trove_conductor_extra_volumes: "{{ trove_extra_volumes }}"
|
|
trove_taskmanager_extra_volumes: "{{ trove_extra_volumes }}"
|
|
|
|
####################
|
|
# OpenStack
|
|
####################
|
|
trove_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ trove_api_port }}/v1.0/%(tenant_id)s"
|
|
trove_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ trove_api_port }}/v1.0/%(tenant_id)s"
|
|
trove_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn | put_address_in_context('url') }}:{{ trove_api_port }}/v1.0/%(tenant_id)s"
|
|
|
|
trove_logging_debug: "{{ openstack_logging_debug }}"
|
|
|
|
trove_keystone_user: "trove"
|
|
|
|
openstack_trove_auth: "{{ openstack_auth }}"
|
|
|
|
|
|
####################
|
|
# Kolla
|
|
####################
|
|
trove_git_repository: "{{ kolla_dev_repos_git }}/{{ project_name }}"
|
|
trove_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
|
|
trove_dev_mode: "{{ kolla_dev_mode }}"
|
|
trove_source_version: "{{ kolla_source_version }}"
|
|
|
|
####################
|
|
# Notifications
|
|
####################
|
|
trove_notification_topics:
|
|
- name: notifications
|
|
enabled: "{{ enable_ceilometer | bool }}"
|
|
|
|
trove_enabled_notification_topics: "{{ trove_notification_topics | selectattr('enabled', 'equalto', true) | list }}"
|
|
|
|
####################
|
|
# Keystone
|
|
####################
|
|
trove_ks_services:
|
|
- name: "trove"
|
|
type: "database"
|
|
description: "Trove Database Service"
|
|
endpoints:
|
|
- {'interface': 'admin', 'url': '{{ trove_admin_endpoint }}'}
|
|
- {'interface': 'internal', 'url': '{{ trove_internal_endpoint }}'}
|
|
- {'interface': 'public', 'url': '{{ trove_public_endpoint }}'}
|
|
|
|
trove_ks_users:
|
|
- project: "service"
|
|
user: "{{ trove_keystone_user }}"
|
|
password: "{{ trove_keystone_password }}"
|
|
role: "admin"
|