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
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
---
|
|
project_name: "mongodb"
|
|
|
|
mongodb_services:
|
|
mongodb:
|
|
container_name: mongodb
|
|
group: mongodb
|
|
enabled: true
|
|
privileged: True
|
|
image: "{{ mongodb_image_full }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/mongodb/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "mongodb:/var/lib/mongodb"
|
|
dimensions: "{{ mongodb_dimensions }}"
|
|
haproxy:
|
|
mongodb:
|
|
enabled: "{{ enable_mongodb }}"
|
|
mode: "http"
|
|
external: false
|
|
port: "{{ mongodb_port }}"
|
|
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
mongodb_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-mongodb"
|
|
mongodb_tag: "{{ openstack_release }}"
|
|
mongodb_image_full: "{{ mongodb_image }}:{{ mongodb_tag }}"
|
|
mongodb_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
####################
|
|
# Mongodb
|
|
####################
|
|
mongodb_replication_set_name: "rs0"
|