Skip to content

Commit 01fb21e

Browse files
committed
ansible: Remove go-sockaddr magic in nomad and consul
1 parent 016033e commit 01fb21e

6 files changed

Lines changed: 23 additions & 23 deletions

File tree

ansible/roles/consul/files/25-base.hcl

Lines changed: 0 additions & 8 deletions
This file was deleted.

ansible/roles/consul/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
mode: 0755
2727

2828
- name: Install Core Configuration
29-
copy:
30-
src: 25-base.hcl
29+
template:
30+
src: 25-base.hcl.j2
3131
dest: /etc/consul/25-base.hcl
3232
owner: root
3333
group: root
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
data_dir = "/var/lib/consul"
2+
client_addr = "127.0.0.1 172.26.64.1 {{void_mesh[inventory_hostname]}}"
3+
advertise_addr = "{{void_mesh[inventory_hostname]}}"
4+
datacenter = "void"
5+
acl {
6+
enabled = true
7+
default_policy = "deny"
8+
}

ansible/roles/nomad/files/25-base.hcl

Lines changed: 0 additions & 11 deletions
This file was deleted.

ansible/roles/nomad/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
mode: 0755
2222

2323
- name: Install base configuration
24-
copy:
25-
src: 25-base.hcl
24+
template:
25+
src: 25-base.hcl.j2
2626
dest: /etc/nomad/25-base.hcl
2727
owner: root
2828
group: root
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
data_dir = "/var/lib/nomad"
2+
3+
advertise {
4+
http = "{{void_mesh[inventory_hostname]}}"
5+
rpc = "{{void_mesh[inventory_hostname]}}"
6+
serf = "{{void_mesh[inventory_hostname]}}"
7+
}
8+
9+
acl {
10+
enabled = true
11+
}

0 commit comments

Comments
 (0)