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
73 lines
3.1 KiB
YAML
73 lines
3.1 KiB
YAML
---
|
|
project_name: "swift"
|
|
|
|
swift_services:
|
|
swift-api:
|
|
group: swift-proxy-server
|
|
enabled: true
|
|
haproxy:
|
|
swift_api:
|
|
enabled: "{{ enable_swift }}"
|
|
mode: "http"
|
|
external: false
|
|
port: "{{ swift_proxy_server_port }}"
|
|
swift_api_external:
|
|
enabled: "{{ enable_swift }}"
|
|
mode: "http"
|
|
external: true
|
|
port: "{{ swift_proxy_server_port }}"
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
swift_install_type: "{{ kolla_install_type }}"
|
|
swift_tag: "{{ openstack_release }}"
|
|
|
|
swift_proxy_server_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ swift_install_type }}-swift-proxy-server"
|
|
swift_proxy_server_tag: "{{ swift_tag }}"
|
|
swift_proxy_server_image_full: "{{ swift_proxy_server_image }}:{{ swift_proxy_server_tag }}"
|
|
|
|
swift_account_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ swift_install_type }}-swift-account"
|
|
swift_account_tag: "{{ swift_tag }}"
|
|
swift_account_image_full: "{{ swift_account_image }}:{{ swift_account_tag }}"
|
|
|
|
swift_container_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ swift_install_type }}-swift-container"
|
|
swift_container_tag: "{{ swift_tag }}"
|
|
swift_container_image_full: "{{ swift_container_image }}:{{ swift_container_tag }}"
|
|
|
|
swift_object_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ swift_install_type }}-swift-object"
|
|
swift_object_tag: "{{ swift_tag }}"
|
|
swift_object_image_full: "{{ swift_object_image }}:{{ swift_object_tag }}"
|
|
|
|
swift_object_expirer_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ swift_install_type }}-swift-object-expirer"
|
|
swift_object_expirer_tag: "{{ swift_tag }}"
|
|
swift_object_expirer_image_full: "{{ swift_object_expirer_image }}:{{ swift_object_expirer_tag }}"
|
|
|
|
swift_rsyncd_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ swift_install_type }}-swift-rsyncd"
|
|
swift_rsyncd_tag: "{{ swift_tag }}"
|
|
swift_rsyncd_image_full: "{{ swift_rsyncd_image }}:{{ swift_rsyncd_tag }}"
|
|
|
|
swift_log_level: "{{ 'INFO' if openstack_logging_debug == 'False' else 'DEBUG'}}"
|
|
|
|
####################
|
|
# OpenStack
|
|
####################
|
|
swift_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ swift_proxy_server_port }}/v1"
|
|
swift_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ swift_proxy_server_port }}/v1/AUTH_%(tenant_id)s"
|
|
swift_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn }}:{{ swift_proxy_server_port }}/v1/AUTH_%(tenant_id)s"
|
|
|
|
swift_logging_debug: "{{ openstack_logging_debug }}"
|
|
|
|
swift_keystone_user: "swift"
|
|
swift_admin_tenant_name: "admin"
|
|
|
|
swift_devices_mount_point: "/srv/node"
|
|
swift_devices_match_mode: "strict"
|
|
swift_devices_name: "KOLLA_SWIFT_DATA"
|
|
swift_delay_auth_decision: "False"
|
|
|
|
openstack_swift_auth: "{{ openstack_auth }}"
|
|
|
|
syslog_server: "{{ api_interface_address }}"
|
|
syslog_swift_facility: "local0"
|