2021-02-23 09:42:26 +01:00
|
|
|
---
|
2021-05-20 18:28:57 +02:00
|
|
|
- hosts: dev_infra
|
2021-05-31 18:04:17 +02:00
|
|
|
#- hosts: localhost
|
2021-03-24 17:26:49 +01:00
|
|
|
vars_files:
|
|
|
|
- roles/workers/defaults/smtp.yaml
|
2021-05-18 15:10:08 +02:00
|
|
|
- roles/pep/defaults/pep_credentials.yaml
|
|
|
|
- roles/conductor/defaults/conductor_ui_secrets.yaml
|
2021-02-23 09:42:26 +01:00
|
|
|
vars:
|
2021-05-18 15:10:08 +02:00
|
|
|
infrastructure: "dev"
|
2021-03-24 17:26:49 +01:00
|
|
|
pymail_password: "{{ smtp_dev_pwd }}"
|
2021-05-18 15:10:08 +02:00
|
|
|
iam_host: https://accounts.dev.d4science.org
|
|
|
|
pep: True
|
2021-05-20 18:02:07 +02:00
|
|
|
pep_replicas: 2
|
2021-05-18 15:10:08 +02:00
|
|
|
pep_credentials: "{{ dev_pep_credentials }}"
|
2021-05-20 17:17:16 +02:00
|
|
|
ha_network: True
|
2021-05-18 15:10:08 +02:00
|
|
|
conductor_ui_secret: "{{ dev_conductor_ui_secret }}"
|
|
|
|
conductor_auth: oauth2
|
2021-05-19 17:02:57 +02:00
|
|
|
conductor_server_name: conductor.dev.d4science.org
|
|
|
|
conductor_ui_server_name: conductor-ui.dev.d4science.org
|
2021-05-20 17:50:45 +02:00
|
|
|
conductor_ui_public_url: "https://{{ conductor_ui_server_name }}"
|
2021-06-01 10:26:39 +02:00
|
|
|
conductor_replicas: 1
|
2021-05-18 15:10:08 +02:00
|
|
|
conductor_ui_replicas: 2
|
2021-05-19 17:02:57 +02:00
|
|
|
|
2021-02-23 09:42:26 +01:00
|
|
|
roles:
|
|
|
|
- common
|
|
|
|
- databases
|
|
|
|
- conductor
|
|
|
|
- workers
|
2021-05-18 15:10:08 +02:00
|
|
|
- pep
|
2021-02-23 09:42:26 +01:00
|
|
|
tasks:
|
|
|
|
- name: Start {{ db|default('postgres', true) }} and es
|
|
|
|
docker_stack:
|
|
|
|
name: 'conductor-{{ infrastructure }}'
|
|
|
|
state: present
|
|
|
|
compose:
|
|
|
|
- "{{ target_path }}/{{ db|default('postgres', true) }}-swarm.yaml"
|
|
|
|
- "{{ target_path }}/elasticsearch-swarm.yaml"
|
|
|
|
when: dry is not defined or not dry|bool
|
|
|
|
|
|
|
|
- name: Waiting for databases
|
|
|
|
pause:
|
|
|
|
seconds: 20
|
|
|
|
when: dry is not defined or not dry|bool
|
|
|
|
|
|
|
|
- name: Start conductor
|
|
|
|
docker_stack:
|
|
|
|
name: "conductor-{{ infrastructure }}"
|
|
|
|
state: present
|
|
|
|
compose:
|
|
|
|
- "{{ target_path }}/conductor-swarm.yaml"
|
|
|
|
when: dry is not defined or not dry|bool
|
|
|
|
|
2021-05-18 15:10:08 +02:00
|
|
|
- name: Start pep
|
2021-02-23 09:42:26 +01:00
|
|
|
docker_stack:
|
|
|
|
name: 'conductor-{{ infrastructure }}'
|
|
|
|
state: present
|
|
|
|
compose:
|
2021-05-18 15:10:08 +02:00
|
|
|
- "{{ target_path }}/pep-swarm.yaml"
|
2021-02-23 09:42:26 +01:00
|
|
|
when: dry is not defined or not dry|bool
|
|
|
|
|
|
|
|
- name: Start workers
|
|
|
|
docker_stack:
|
|
|
|
name: "conductor-{{ infrastructure }}"
|
|
|
|
state: present
|
|
|
|
compose:
|
|
|
|
- "{{ target_path }}/conductor-workers-swarm.yaml"
|
|
|
|
when: dry is not defined or not dry|bool
|