# Ingest internal calls VITAM
- hosts: hosts_vitamui_ingest_internal
  gather_facts: no
  any_errors_fatal: true
  roles:
    - vitamui
  vars:
    app_default_root_path: "/vitamui"
    vitamui_struct: "{{ vitamui.ingest_internal }}"
    vitamui_certificate_type: "server"
    password_keystore: "{{ keystores_server_ingest_internal }}"
    password_truststore: "{{ truststores_server }}"
    vitam_cert: "{{ vitam_certs.vitamui }}"
    consul_tags: "ingest-internal, api, internal"

# Ingest external calls ingest internal
- hosts: hosts_vitamui_ingest_external
  gather_facts: no
  any_errors_fatal: true
  roles:
    - vitamui
  vars:
    app_default_root_path: "/vitamui"
    vitamui_struct: "{{ vitamui.ingest_external }}"
    vitamui_certificate_type: "external"
    password_keystore: "{{ keystores_server_ingest_external }}"
    password_truststore: "{{ truststores_client_external }}"
    consul_tags: "ingest-external, api, external"

# UI ingest calls ingest external

- hosts: hosts_ui_ingest
  gather_facts: no
  any_errors_fatal: true
  roles:
    - vitamui
  vars:
    app_default_root_path: "/vitamui"
    vitamui_struct: "{{ vitamui.ingest }}"
    vitamui_certificate_type: "server"
    password_keystore: "{{ keystores_server_ui_ingest }}"
    password_truststore: "{{ truststores_server }}"
    consul_tags: "ui-ingest, ui"

