added ansible bootstrap

This commit is contained in:
Mauro Mugnaini 2020-10-27 10:54:01 +01:00
parent 7e7852d694
commit 919dccb12f
5 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,10 @@
---
conductor_network: conductor-network
dynomite_shards: 2
dynomite_replicas: 3
elasticsearch_replicas: 1
conductor_replicas: 2

View File

@ -0,0 +1,3 @@
---
- name: Hello world dynomite
command: echo "Hello world"

View File

@ -0,0 +1 @@
{{ service }}:8101:{{ rack }}:{{ datacenter }}:{{ token }}

View File

@ -0,0 +1,22 @@
dynomite1:
environment:
- DYNO_NODE={{ node_seed }}
image: nubisware/autodynomite:latest
networks:
{{ conductor-network }}:
logging:
driver: "journald"
deploy:
mode: replicated
replicas: 1
endpoint_mode: dnsrr
placement:
constraints: [node.role == worker]
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
configs:
- source: seeds.list
target: /dynomite/seeds.list

View File

@ -0,0 +1,11 @@
version: '3.6'
services:
{{ dynomyte_services }}
networks:
{{ conductor_network }}:
configs:
seeds.list:
file: {{ seeds_list_path }}