parent
492c11ce61
commit
c69b192c41
@ -1,5 +1,5 @@
|
||||
---
|
||||
target_path: /tmp/conductor_stack
|
||||
target_path: "/tmp/conductor_stack"
|
||||
conductor_network: conductor-network
|
||||
conductor_db: postgres
|
||||
init_db: True
|
||||
|
@ -0,0 +1,23 @@
|
||||
{
|
||||
"strategy": "local",
|
||||
"strategySettings":{
|
||||
"users": {
|
||||
"admin": {
|
||||
"hash": "098039dd5e84e486f83eadefc31ce038ccc90d6d62323528181049371c9460b4",
|
||||
"salt": "salt",
|
||||
"displayName": "Admin",
|
||||
"email": "marco.lettere@nubisware.com",
|
||||
"roles": [ "admin", "viewer" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"audit": true,
|
||||
"acl": [
|
||||
"POST /(.*) admin",
|
||||
"PUT /(.*) admin",
|
||||
"DELETE /(.*) admin",
|
||||
"GET /api/(.*) viewer",
|
||||
"GET /(.*) *"
|
||||
]
|
||||
}
|
||||
|
@ -0,0 +1,50 @@
|
||||
---
|
||||
- hosts: dev_infra
|
||||
vars:
|
||||
cluster_check: true
|
||||
infrastructure: dev
|
||||
conductor_workers_server: http://conductor-server:8080/api
|
||||
roles:
|
||||
- common
|
||||
- databases
|
||||
- conductor
|
||||
- workers
|
||||
- cluster-replacement
|
||||
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
|
||||
|
||||
- name: Start haproxy
|
||||
docker_stack:
|
||||
name: 'conductor-{{ infrastructure }}'
|
||||
state: present
|
||||
compose:
|
||||
- "{{ target_path }}/haproxy-swarm.yaml"
|
||||
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
|
@ -0,0 +1,44 @@
|
||||
---
|
||||
- hosts: pre_infra
|
||||
vars_files:
|
||||
- roles/external-postgres/defaults/vault_main.yaml
|
||||
vars:
|
||||
cluster_check: true
|
||||
infrastructure: pre
|
||||
conductor_workers_server: http://conductor-server:8080/api
|
||||
roles:
|
||||
- common
|
||||
- databases
|
||||
- cluster-replacement
|
||||
- conductor
|
||||
- workers
|
||||
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
|
||||
|
||||
- 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
|
Loading…
Reference in New Issue