File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44- hosts : userland
55 vars_files :
6- - " group_vars/{{ var_file }}.yml"
7- - " group_vars/alpha-consul-template-updater.yml"
6+ - group_vars/{{ var_file }}.yml
7+ - group_vars/alpha-consul-template-updater.yml
88 roles :
9- - { role: notify, tags: "notify" }
10- - { role: container_kill_start }
9+ - role : notify
10+ tags : notify
11+
12+ - role : container_kill_start
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ container_run_opts: >
1414container_run_args : >
1515 -consul={{ consul_host_address }}:{{ consul_api_port }}
1616 -wait=1s
17- -template="/tmp/template:{{ dest_path }}/{{ out_file }}:{{ template_command }}"
17+ -template="/tmp/template:{{ target_updater_file_path }}/{{ out_file }}:{{ template_command }}"
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ name: nginx
33
44# used by consul template updater
55target_container_name : nginx
6- dest_path : /etc/nginx/sites-enabled
6+ target_updater_file_path : /etc/nginx/sites-enabled
77template_path : /etc/nginx/template/navi.tmpl
8- template_command : " /bin/docker kill -s HUP {{ target_container_name }}"
9- out_file : ' navi.conf'
8+ template_command : /bin/docker kill -s HUP {{ target_container_name }}
9+ out_file : navi.conf
1010
1111# used by container_kill_start
1212container_image : " {{ name }}"
@@ -19,6 +19,6 @@ container_run_opts: >
1919 -p 0.0.0.0:443:443
2020 -p 0.0.0.0:80:80
2121 -v /etc/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
22- -v {{ dest_path }}
22+ -v {{ target_updater_file_path }}
2323 -v /etc/ssl/certs/{{ user_content_domain }}:/etc/ssl/certs/{{ user_content_domain }}:ro
2424 -v /var/log/nginx:/var/log/nginx
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ hosted_ports: [ "{{ navi_http_port }}" ]
77node_version : " 4.2.4"
88npm_version : " 2.8.3"
99
10- restart_policy : " always"
10+ restart_policy : always
1111
1212redis_ca_cert_path : /opt/ssl/{{ name }}/redis/ca.pem
1313content_domain_certs : /opt/ssl/{{ user_content_domain }}
Original file line number Diff line number Diff line change 11---
22- hosts : userland
33 vars_files :
4- - group_vars/alpha-navi-proxy.yml
4+ - group_vars/alpha-navi-proxy.yml
55 roles :
6- - role : datadog
7- has_dd_integration : yes
6+ - role : datadog
7+ has_dd_integration : yes
88
9- - role : content-domain-proxy
9+ - role : content-domain-proxy
1010
11- - role : container_kill_start
11+ - role : container_kill_start
1212
1313- include : consul-template-updater.yml
1414 vars :
15- var_file : " alpha-navi-proxy"
15+ var_file : alpha-navi-proxy
Original file line number Diff line number Diff line change 33
44- hosts : navi
55 vars_files :
6- - " group_vars/alpha-registrator.yml"
6+ - group_vars/alpha-registrator.yml
77 roles :
8- - { role: notify, tags: "notify" }
9- - { role: container_kill_start }
8+ - role : notify
9+ tags : notify
10+
11+ - role : container_kill_start
You can’t perform that action at this time.
0 commit comments