File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ beta-services
2525beta-api
2626beta-web
2727
28+ [vault]
29+ beta-services
30+
2831[worker]
2932beta-api
3033
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ ---
2+ - hosts : consul
3+ vars_files :
4+ - group_vars/alpha-consul.yml
5+ roles :
6+ - { role: notify, tags: notify }
7+ - { role: consul }
8+ - { role: container_start, tags: deploy }
Original file line number Diff line number Diff line change 1- name : " consul-server "
1+ name : consul
22
3- container_image : " progrium/consul"
4- container_tag : " master "
3+ container_image : progrium/consul
4+ container_tag : latest
55
66container_run_opts : >
77 -d
8- -h $HOSTNAME
8+ -h {{ inventory_hostname }}
99 -v /consul:/data
10- -p 8300:8300
11- -p 8301:8301
12- -p 8301:8301/udp
13- -p 8302:8302
14- -p 8302:8302/udp
15- -p 8400:8400
16- -p 8500:8500
10+ -v /etc/consul.d:/etc/consul.d:ro
11+ -p {{ ansible_default_ipv4.address }}:8300:8300
12+ -p {{ ansible_default_ipv4.address }}:8301:8301
13+ -p {{ ansible_default_ipv4.address }}:8301:8301/udp
14+ -p {{ ansible_default_ipv4.address }}:8302:8302
15+ -p {{ ansible_default_ipv4.address }}:8302:8302/udp
16+ -p {{ ansible_default_ipv4.address }}:8400:8400
17+ -p {{ ansible_default_ipv4.address }}:8500:8500
18+ -p 172.17.42.1:53:53/udp
1719 --restart=always
1820
1921container_run_args : >
2022 -server
23+ -node {{ inventory_hostname }}
2124 -advertise {{ ansible_default_ipv4.address }}
22- -bootstrap-expect {{ groups['palantiri'] | length }}
23- {% if hostvars[groups['palantiri'][0]]['ansible_default_ipv4']['address'] != ansible_default_ipv4.address %}-retry-join {{ hostvars[groups['palantiri'][0]]['ansible_default_ipv4']['address'] }}{% endif %}
25+ -config-dir /etc/consul.d
26+ {% if hostvars[groups['consul'][0]]['ansible_default_ipv4']['address'] == ansible_default_ipv4.address %}-bootstrap-expect {{ groups['consul'] | length }}{% endif %}
27+ -data-dir /data
28+ {% if hostvars[groups['consul'][0]]['ansible_default_ipv4']['address'] == ansible_default_ipv4.address %}-ui-dir /ui{% endif %}
29+ {% if hostvars[groups['consul'][0]]['ansible_default_ipv4']['address'] != ansible_default_ipv4.address %}-retry-join {{ hostvars[groups['consul'][0]]['ansible_default_ipv4']['address'] }}{% endif %}
Original file line number Diff line number Diff line change 2626[api]
2727alpha-api
2828
29+ [consul]
30+ alpha-api-old
31+ alpha-api
32+ alpha-web
33+
34+ [vault]
35+ alpha-api-old
36+
2937[worker]
3038alpha-api
3139
Original file line number Diff line number Diff line change 1+ - name : make config directory
2+ sudo : yes
3+ file :
4+ state=directory
5+ name=/etc/consul.d
You can’t perform that action at this time.
0 commit comments