f1c8136556
Having all services in one giant haproxy file makes altering configuration for a service both painful and dangerous. Each service should be configured with a simple set of variables and rendered with a single unified template. Available are two new templates: * haproxy_single_service_listen.cfg.j2: close to the original style, but only one service per file * haproxy_single_service_split.cfg.j2: using the newer haproxy syntax for separated frontend and backend For now the default will be the single listen block, for ease of transition. Change-Id: I6e237438fbc0aa3c89a3c8bd706a53b74e71904b
107 lines
4.5 KiB
YAML
107 lines
4.5 KiB
YAML
---
|
|
project_name: "barbican"
|
|
|
|
barbican_services:
|
|
barbican-api:
|
|
container_name: barbican_api
|
|
group: barbican-api
|
|
enabled: true
|
|
image: "{{ barbican_api_image_full }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/barbican-api/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "barbican:/var/lib/barbican/"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "{{ kolla_dev_repos_directory ~ '/barbican/barbican:/var/lib/kolla/venv/lib/python2.7/site-packages/barbican' if barbican_dev_mode | bool else '' }}"
|
|
dimensions: "{{ barbican_api_dimensions }}"
|
|
haproxy:
|
|
barbican_api:
|
|
enabled: "{{ enable_barbican }}"
|
|
mode: "http"
|
|
external: false
|
|
port: "{{ barbican_api_port }}"
|
|
barbican_api_external:
|
|
enabled: "{{ enable_barbican }}"
|
|
mode: "http"
|
|
external: true
|
|
port: "{{ barbican_api_port }}"
|
|
barbican-keystone-listener:
|
|
container_name: barbican_keystone_listener
|
|
group: barbican-keystone-listener
|
|
enabled: true
|
|
image: "{{ barbican_keystone_listener_image_full }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/barbican-keystone-listener/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "{{ kolla_dev_repos_directory ~ '/barbican/barbican:/var/lib/kolla/venv/lib/python2.7/site-packages/barbican' if barbican_dev_mode | bool else '' }}"
|
|
dimensions: "{{ barbican_keystone_listener_dimensions }}"
|
|
barbican-worker:
|
|
container_name: barbican_worker
|
|
group: barbican-worker
|
|
enabled: true
|
|
image: "{{ barbican_worker_image_full }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/barbican-worker/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "{{ kolla_dev_repos_directory ~ '/barbican/barbican:/var/lib/kolla/venv/lib/python2.7/site-packages/barbican' if barbican_dev_mode | bool else '' }}"
|
|
dimensions: "{{ barbican_worker_dimensions }}"
|
|
|
|
|
|
####################
|
|
# Database
|
|
####################
|
|
barbican_database_name: "barbican"
|
|
barbican_database_user: "{% if use_preconfigured_databases | bool and use_common_mariadb_user | bool %}{{ database_user }}{% else %}barbican{% endif %}"
|
|
barbican_database_address: "{{ database_address }}:{{ database_port }}"
|
|
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
barbican_install_type: "{{ kolla_install_type }}"
|
|
barbican_tag: "{{ openstack_release }}"
|
|
|
|
barbican_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ barbican_install_type }}-barbican-api"
|
|
barbican_api_tag: "{{ barbican_tag }}"
|
|
barbican_api_image_full: "{{ barbican_api_image }}:{{ barbican_api_tag }}"
|
|
|
|
barbican_keystone_listener_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ barbican_install_type }}-barbican-keystone-listener"
|
|
barbican_keystone_listener_tag: "{{ barbican_tag }}"
|
|
barbican_keystone_listener_image_full: "{{ barbican_keystone_listener_image }}:{{ barbican_keystone_listener_tag }}"
|
|
|
|
barbican_worker_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ barbican_install_type }}-barbican-worker"
|
|
barbican_worker_tag: "{{ barbican_tag }}"
|
|
barbican_worker_image_full: "{{ barbican_worker_image }}:{{ barbican_worker_tag }}"
|
|
|
|
barbican_api_dimensions: "{{ default_container_dimensions }}"
|
|
barbican_keystone_listener_dimensions: "{{ default_container_dimensions }}"
|
|
barbican_worker_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
####################
|
|
# OpenStack
|
|
####################
|
|
barbican_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ barbican_api_port }}"
|
|
barbican_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ barbican_api_port }}"
|
|
barbican_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn }}:{{ barbican_api_port }}"
|
|
|
|
barbican_logging_debug: "{{ openstack_logging_debug }}"
|
|
|
|
barbican_keystone_user: "barbican"
|
|
barbican_keymanager_role: "key-manager:service-admin"
|
|
barbican_creator_role: "creator"
|
|
barbican_observer_role: "observer"
|
|
barbican_audit_role: "audit"
|
|
|
|
openstack_barbican_auth: "{{ openstack_auth }}"
|
|
|
|
|
|
####################
|
|
# Kolla
|
|
####################
|
|
barbican_git_repository: "{{ kolla_dev_repos_git }}/{{ project_name }}"
|
|
barbican_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
|
|
barbican_dev_mode: "{{ kolla_dev_mode }}"
|
|
barbican_source_version: "{{ kolla_source_version }}"
|