b63ecd7e3e
through the database_address has beed defined in groups_vars/all.yml, we should better use it, this way, if we want to use external database, we just need to redefined in all.yml refer to https://github.com/openstack/kolla-ansible/blob/master/ansible/group_vars/all.yml#L83 Co-Authored-By: chenqiaomin <chen.qiaomin@99cloud.net> Change-Id: Ie559301451954e16347ceaabf02f594c5c5cbe56
62 lines
2.0 KiB
YAML
62 lines
2.0 KiB
YAML
---
|
|
project_name: "zun"
|
|
|
|
zun_services:
|
|
zun-api:
|
|
container_name: zun_api
|
|
group: zun-api
|
|
enabled: true
|
|
image: "{{ zun_api_image_full }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/zun-api/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
zun-compute:
|
|
container_name: zun_compute
|
|
group: zun-compute
|
|
enabled: true
|
|
image: "{{ zun_compute_image_full }}"
|
|
privileged: True
|
|
volumes:
|
|
- "{{ node_config_directory }}/zun-compute/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "/run:/run:shared"
|
|
- "/usr/lib/docker:/usr/lib/docker"
|
|
|
|
####################
|
|
## Database
|
|
####################
|
|
zun_database_name: "zun"
|
|
zun_database_user: "zun"
|
|
zun_database_address: "{{ database_address }}:{{ database_port }}"
|
|
|
|
|
|
####################
|
|
## Docker
|
|
####################
|
|
zun_install_type: "{{ kolla_install_type }}"
|
|
zun_tag: "{{ openstack_release }}"
|
|
|
|
zun_compute_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ zun_install_type }}-zun-compute"
|
|
zun_compute_tag: "{{ zun_tag }}"
|
|
zun_compute_image_full: "{{ zun_compute_image }}:{{ zun_compute_tag }}"
|
|
|
|
zun_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ zun_install_type }}-zun-api"
|
|
zun_api_tag: "{{ zun_tag }}"
|
|
zun_api_image_full: "{{ zun_api_image }}:{{ zun_api_tag }}"
|
|
|
|
|
|
####################
|
|
## OpenStack
|
|
####################
|
|
zun_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ zun_api_port }}/v1/"
|
|
zun_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ zun_api_port }}/v1/"
|
|
zun_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn }}:{{ zun_api_port }}/v1/"
|
|
|
|
zun_logging_debug: "{{ openstack_logging_debug }}"
|
|
|
|
zun_keystone_user: "zun"
|
|
|
|
openstack_zun_auth: "{{ openstack_auth }}"
|