added configs for prod deployment

This commit is contained in:
dcore94 2021-02-16 14:48:41 +01:00
parent 1887adf73b
commit 414a38631c
4 changed files with 19 additions and 3 deletions

View File

@ -0,0 +1,3 @@
---
infrastructure: prod
conductor_workers_server: https://conductor.prod.d4science.org/api

5
inventory/hosts.prod Normal file
View File

@ -0,0 +1,5 @@
[prod_infra:children]
prod_cluster
[prod_cluster]
docker-swarm1.int.d4science.net docker_swarm_manager_main_node=True

View File

@ -9,6 +9,14 @@ postgres_jdbc_pass: password
postgres_jdbc_db: conductor
postgres_jdbc_url: jdbc:postgresql://{{ postgres_service_name }}:5432/{{ mysql_jdbc_db }}
postgres_host_name: 'postgresql-srv.d4science.org'
postgres_replicas: 1
postgres_conductor_db: postgres
postgres_jdbc_user: conductor_u
postgres_jdbc_pass: c36dda661add7c2b5093087ddb655992
postgres_jdbc_db: conductor
postgres_jdbc_url: jdbc:postgresql://{{ postgres_service_name }}:5432/{{ mysql_jdbc_db }}
mysql_image_name: 'mariadb'
mysql_service_name: 'mysqldb'
mysql_replicas: 1

View File

@ -13,7 +13,7 @@
tasks:
- name: Start es
docker_stack:
name: conductor-prod
name: "conductor-{{ infrastructure }}"
state: present
compose:
- "{{ target_path }}/elasticsearch-swarm.yaml"
@ -26,7 +26,7 @@
- name: Start conductor
docker_stack:
name: conductor-prod
name: "conductor-{{ infrastructure }}"
state: present
compose:
- "{{ target_path }}/conductor-swarm.yaml"
@ -34,7 +34,7 @@
- name: Start workers
docker_stack:
name: conductor-prod
name: "conductor-{{ infrastructure }}"
state: present
compose:
- "{{ target_path }}/conductor-workers-swarm.yaml"