Skip to content

Commit b927e1f

Browse files
author
Anandkumar Patel
committed
fix all of the nits
1 parent 6b75a44 commit b927e1f

6 files changed

Lines changed: 23 additions & 19 deletions

File tree

ansible/consul-template-updater.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
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

ansible/group_vars/alpha-consul-template-updater.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ container_run_opts: >
1414
container_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 }}"

ansible/group_vars/alpha-navi-proxy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: nginx
33

44
# used by consul template updater
55
target_container_name: nginx
6-
dest_path: /etc/nginx/sites-enabled
6+
target_updater_file_path: /etc/nginx/sites-enabled
77
template_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
1212
container_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

ansible/group_vars/alpha-navi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ hosted_ports: [ "{{ navi_http_port }}" ]
77
node_version: "4.2.4"
88
npm_version: "2.8.3"
99

10-
restart_policy: "always"
10+
restart_policy: always
1111

1212
redis_ca_cert_path: /opt/ssl/{{ name }}/redis/ca.pem
1313
content_domain_certs: /opt/ssl/{{ user_content_domain }}

ansible/navi-proxy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
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

ansible/registrator.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
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

0 commit comments

Comments
 (0)