8b292c99bf
Kolla-ansible provides support for the dev mode for some projects of openstack, but there are still some projects that do not yet support specific release tag. This patch will implement this function for these project. Change-Id: I917b27dd61295b542457a21b240afe2cd4e83e58
81 lines
3.1 KiB
YAML
81 lines
3.1 KiB
YAML
---
|
|
project_name: "freezer"
|
|
|
|
freezer_services:
|
|
freezer-api:
|
|
container_name: freezer_api
|
|
group: freezer-api
|
|
enabled: true
|
|
image: "{{ freezer_api_image_full }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/freezer-api/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "freezer:/var/lib/freezer/"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "{{ kolla_dev_repos_directory ~ '/freezer-api/freezer_api:/var/lib/kolla/venv/lib/python2.7/site-packages/freezer_api' if freezer_dev_mode | bool else '' }}"
|
|
dimensions: "{{ freezer_api_dimensions }}"
|
|
haproxy:
|
|
freezer_api:
|
|
enabled: "{{ enable_freezer }}"
|
|
mode: "http"
|
|
external: false
|
|
port: "{{ freezer_api_port }}"
|
|
freezer_api_external:
|
|
enabled: "{{ enable_freezer }}"
|
|
mode: "http"
|
|
external: true
|
|
port: "{{ freezer_api_port }}"
|
|
freezer-scheduler:
|
|
container_name: freezer_scheduler
|
|
group: freezer-scheduler
|
|
enabled: true
|
|
image: "{{ freezer_scheduler_image_full }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/freezer-scheduler/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "freezer:/var/lib/freezer/"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "{{ kolla_dev_repos_directory ~ '/freezer/freezer:/var/lib/kolla/venv/lib/python2.7/site-packages/freezer' if freezer_dev_mode | bool else '' }}"
|
|
dimensions: "{{ freezer_scheduler_dimensions }}"
|
|
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
freezer_install_type: "{{ kolla_install_type }}"
|
|
freezer_tag: "{{ openstack_release }}"
|
|
|
|
freezer_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ freezer_install_type }}-freezer-api"
|
|
freezer_api_tag: "{{ freezer_tag }}"
|
|
freezer_api_image_full: "{{ freezer_api_image }}:{{ freezer_api_tag }}"
|
|
|
|
freezer_scheduler_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ freezer_install_type }}-freezer-scheduler"
|
|
freezer_scheduler_tag: "{{ freezer_tag }}"
|
|
freezer_scheduler_image_full: "{{ freezer_scheduler_image }}:{{ freezer_scheduler_tag }}"
|
|
|
|
freezer_api_dimensions: "{{ default_container_dimensions }}"
|
|
freezer_scheduler_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
####################
|
|
# OpenStack
|
|
####################
|
|
freezer_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ freezer_api_port }}"
|
|
freezer_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ freezer_api_port }}"
|
|
freezer_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn }}:{{ freezer_api_port }}"
|
|
|
|
freezer_logging_debug: "{{ openstack_logging_debug }}"
|
|
|
|
freezer_keystone_user: "freezer"
|
|
|
|
openstack_freezer_auth: "{{ openstack_auth }}"
|
|
|
|
|
|
####################
|
|
# Kolla
|
|
####################
|
|
freezer_git_repository: "{{ kolla_dev_repos_git }}/{{ project_name }}"
|
|
freezer_api_git_repository: "{{ kolla_dev_repos_git }}/freezer-api"
|
|
freezer_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
|
|
freezer_dev_mode: "{{ kolla_dev_mode }}"
|
|
freezer_source_version: "{{ kolla_source_version }}"
|