added ansible bootstrap
This commit is contained in:
parent
7e7852d694
commit
919dccb12f
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
conductor_network: conductor-network
|
||||
|
||||
dynomite_shards: 2
|
||||
dynomite_replicas: 3
|
||||
|
||||
elasticsearch_replicas: 1
|
||||
|
||||
conductor_replicas: 2
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: Hello world dynomite
|
||||
command: echo "Hello world"
|
|
@ -0,0 +1 @@
|
|||
{{ service }}:8101:{{ rack }}:{{ datacenter }}:{{ token }}
|
|
@ -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
|
|
@ -0,0 +1,11 @@
|
|||
version: '3.6'
|
||||
|
||||
services:
|
||||
{{ dynomyte_services }}
|
||||
|
||||
networks:
|
||||
{{ conductor_network }}:
|
||||
|
||||
configs:
|
||||
seeds.list:
|
||||
file: {{ seeds_list_path }}
|
Loading…
Reference in New Issue