Browse Source

added configs for prod deployment

Conductor-2.x
dcore94 2 years ago
parent
commit
414a38631c
  1. 3
      inventory/group_vars/prod_cluster.yaml
  2. 5
      inventory/hosts.prod
  3. 8
      roles/databases/defaults/main.yaml
  4. 6
      site-prod.yaml

3
inventory/group_vars/prod_cluster.yaml

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

5
inventory/hosts.prod

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

8
roles/databases/defaults/main.yaml

@ -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

6
site-prod.yaml

@ -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"

Loading…
Cancel
Save