added ansible bootstrap

pull/1/head
Mauro Mugnaini 2 years ago
parent 7e7852d694
commit 919dccb12f
  1. 10
      ansible/roles/common/defaults/main.yaml
  2. 3
      ansible/roles/dynomite/tasks/main.yaml
  3. 1
      ansible/roles/dynomite/templates/dynomite-seed-entry.j2
  4. 22
      ansible/roles/dynomite/templates/dynomite-service.yaml.j2
  5. 11
      ansible/roles/dynomite/templates/dynomite-swarm.yaml.j2

@ -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…
Cancel
Save