---
project_name: "watcher"

watcher_services:
  watcher-api:
    container_name: watcher_api
    group: watcher-api
    enabled: true
    image: "{{ watcher_api_image_full }}"
    volumes:
      - "{{ node_config_directory }}/watcher-api/:{{ container_config_directory }}/:ro"
      - "/etc/localtime:/etc/localtime:ro"
      - "{{ kolla_dev_repos_directory ~ '/watcher/watcher:/var/lib/kolla/venv/lib/python2.7/site-packages/watcher' if watcher_dev_mode | bool else '' }}"
      - "kolla_logs:/var/log/kolla/"
    dimensions: "{{ watcher_api_dimensions }}"
  watcher-applier:
    container_name: watcher_applier
    group: watcher-applier
    enabled: true
    image: "{{ watcher_applier_image_full }}"
    volumes:
      - "{{ node_config_directory }}/watcher-applier/:{{ container_config_directory }}/:ro"
      - "/etc/localtime:/etc/localtime:ro"
      - "{{ kolla_dev_repos_directory ~ '/watcher/watcher:/var/lib/kolla/venv/lib/python2.7/site-packages/watcher' if watcher_dev_mode | bool else '' }}"
      - "kolla_logs:/var/log/kolla/"
    dimensions: "{{ watcher_applier_dimensions }}"
  watcher-engine:
    container_name: watcher_engine
    group: watcher-engine
    enabled: true
    image: "{{ watcher_engine_image_full }}"
    volumes:
      - "{{ node_config_directory }}/watcher-engine/:{{ container_config_directory }}/:ro"
      - "/etc/localtime:/etc/localtime:ro"
      - "{{ kolla_dev_repos_directory ~ '/watcher/watcher:/var/lib/kolla/venv/lib/python2.7/site-packages/watcher' if watcher_dev_mode | bool else '' }}"
      - "kolla_logs:/var/log/kolla/"
    dimensions: "{{ watcher_engine_dimensions }}"


####################
# Database
####################
watcher_database_name: "watcher"
watcher_database_user: "{% if use_preconfigured_databases | bool and use_common_mariadb_user | bool %}{{ database_user }}{% else %}watcher{% endif %}"
watcher_database_address: "{{ database_address }}:{{ database_port }}"


####################
# Docker
####################
watcher_install_type: "{{ kolla_install_type }}"
watcher_tag: "{{ openstack_release }}"

watcher_engine_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ watcher_install_type }}-watcher-engine"
watcher_engine_tag: "{{ watcher_tag }}"
watcher_engine_image_full: "{{ watcher_engine_image }}:{{ watcher_engine_tag }}"

watcher_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ watcher_install_type }}-watcher-api"
watcher_api_tag: "{{ watcher_tag }}"
watcher_api_image_full: "{{ watcher_api_image }}:{{ watcher_api_tag }}"

watcher_applier_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ watcher_install_type }}-watcher-applier"
watcher_applier_tag: "{{ watcher_tag }}"
watcher_applier_image_full: "{{ watcher_applier_image }}:{{ watcher_applier_tag }}"

watcher_api_dimensions: "{{ default_container_dimensions }}"
watcher_applier_dimensions: "{{ default_container_dimensions }}"
watcher_engine_dimensions: "{{ default_container_dimensions }}"

####################
# OpenStack
####################
watcher_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ watcher_api_port }}"
watcher_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ watcher_api_port }}"
watcher_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn }}:{{ watcher_api_port }}"

watcher_logging_debug: "{{ openstack_logging_debug }}"

watcher_keystone_user: "watcher"

openstack_watcher_auth: "{{ openstack_auth }}"


####################
# Kolla
####################
watcher_git_repository: "{{ kolla_dev_repos_git }}/{{ project_name }}"
watcher_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
watcher_dev_mode: "{{ kolla_dev_mode }}"
