kolla-ansible/ansible/roles/mongodb/defaults/main.yml
Mark Goddard cc555c4196 Add <project>_install_type for all projects
This allows the install type for the project to be different than
kolla_install_type

This can be used to avoid hitting bug 1786238, since kuryr only supports
the source type.

Change-Id: I2b6fc85bac092b1614bccfd22bee48442c55dda4
Closes-Bug: #1786238
2019-09-23 10:23:54 +00:00

41 lines
1.2 KiB
YAML

---
project_name: "mongodb"
mongodb_services:
mongodb:
container_name: mongodb
group: mongodb
enabled: true
privileged: True
image: "{{ mongodb_image_full }}"
volumes: "{{ mongodb_default_volumes + mongodb_extra_volumes }}"
dimensions: "{{ mongodb_dimensions }}"
haproxy:
mongodb:
enabled: "{{ enable_mongodb }}"
mode: "http"
external: false
port: "{{ mongodb_port }}"
####################
# Docker
####################
mongodb_install_type: "{{ kolla_install_type }}"
mongodb_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ mongodb_install_type }}-mongodb"
mongodb_tag: "{{ openstack_release }}"
mongodb_image_full: "{{ mongodb_image }}:{{ mongodb_tag }}"
mongodb_dimensions: "{{ default_container_dimensions }}"
mongodb_default_volumes:
- "{{ node_config_directory }}/mongodb/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "kolla_logs:/var/log/kolla/"
- "mongodb:/var/lib/mongodb"
mongodb_extra_volumes: "{{ default_extra_volumes }}"
####################
# Mongodb
####################
mongodb_replication_set_name: "rs0"