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
91 lines
3.2 KiB
YAML
91 lines
3.2 KiB
YAML
---
|
|
project_name: "blazar"
|
|
|
|
blazar_services:
|
|
blazar-api:
|
|
container_name: blazar_api
|
|
group: blazar-api
|
|
enabled: true
|
|
image: "{{ blazar_api_image_full }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/blazar-api/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "{{ kolla_dev_repos_directory ~ '/blazar/blazar:/var/lib/kolla/venv/lib/python2.7/site-packages/blazar' if blazar_dev_mode | bool else '' }}"
|
|
dimensions: "{{ blazar_api_dimensions }}"
|
|
haproxy:
|
|
blazar_api:
|
|
enabled: "{{ enable_blazar }}"
|
|
mode: "http"
|
|
external: false
|
|
port: "{{ blazar_api_port }}"
|
|
blazar_api_external:
|
|
enabled: "{{ enable_blazar }}"
|
|
mode: "http"
|
|
external: true
|
|
port: "{{ blazar_api_port }}"
|
|
blazar-manager:
|
|
container_name: blazar_manager
|
|
group: blazar-manager
|
|
enabled: true
|
|
image: "{{ blazar_manager_image_full }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/blazar-manager/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "{{ kolla_dev_repos_directory ~ '/blazar/blazar:/var/lib/kolla/venv/lib/python2.7/site-packages/blazar' if blazar_dev_mode | bool else '' }}"
|
|
dimensions: "{{ blazar_manager_dimensions }}"
|
|
|
|
|
|
####################
|
|
# Blazar
|
|
####################
|
|
blazar_aggregate_pool_name: "freepool"
|
|
|
|
####################
|
|
# Database
|
|
####################
|
|
blazar_database_name: "blazar"
|
|
blazar_database_user: "blazar"
|
|
blazar_database_address: "{{ kolla_internal_fqdn }}:{{ database_port }}"
|
|
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
blazar_install_type: "{{ kolla_install_type }}"
|
|
blazar_tag: "{{ openstack_release }}"
|
|
|
|
blazar_manager_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ blazar_install_type }}-blazar-manager"
|
|
blazar_manager_tag: "{{ blazar_tag }}"
|
|
blazar_manager_image_full: "{{ blazar_manager_image }}:{{ blazar_manager_tag }}"
|
|
|
|
blazar_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ blazar_install_type }}-blazar-api"
|
|
blazar_api_tag: "{{ blazar_tag }}"
|
|
blazar_api_image_full: "{{ blazar_api_image }}:{{ blazar_api_tag }}"
|
|
|
|
blazar_api_dimensions: "{{ default_container_dimensions }}"
|
|
blazar_manager_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
####################
|
|
# OpenStack
|
|
####################
|
|
blazar_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ blazar_api_port }}/v1"
|
|
blazar_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ blazar_api_port }}/v1"
|
|
blazar_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn }}:{{ blazar_api_port }}/v1"
|
|
|
|
blazar_logging_debug: "{{ openstack_logging_debug }}"
|
|
|
|
blazar_keystone_user: "blazar"
|
|
|
|
openstack_blazar_auth: "{{ openstack_auth }}"
|
|
|
|
|
|
#####################
|
|
## Kolla
|
|
#####################
|
|
blazar_git_repository: "{{ kolla_dev_repos_git }}/{{ project_name }}"
|
|
blazar_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
|
|
blazar_dev_mode: "{{ kolla_dev_mode }}"
|
|
blazar_source_version: "{{ kolla_source_version }}"
|