aboutsummaryrefslogtreecommitdiff
path: root/os_config/roles/consul/templates/consul.json.j2
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-09-12 20:17:07 +0200
committerQuentin <quentin@deuxfleurs.fr>2020-09-12 20:17:07 +0200
commita23e08ce20887efb4e158a02ffee1f775a0db89f (patch)
tree493a2cef5496aec74e57ad453574fdef6856f92b /os_config/roles/consul/templates/consul.json.j2
parentfb4ffbc7faa0d123ce9bf817d240a8c670c494e3 (diff)
downloadinfrastructure-a23e08ce20887efb4e158a02ffee1f775a0db89f.tar.gz
infrastructure-a23e08ce20887efb4e158a02ffee1f775a0db89f.zip
Refactor 2
Diffstat (limited to 'os_config/roles/consul/templates/consul.json.j2')
-rw-r--r--os_config/roles/consul/templates/consul.json.j230
1 files changed, 0 insertions, 30 deletions
diff --git a/os_config/roles/consul/templates/consul.json.j2 b/os_config/roles/consul/templates/consul.json.j2
deleted file mode 100644
index b6c86aa..0000000
--- a/os_config/roles/consul/templates/consul.json.j2
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "data_dir": "/var/lib/consul",
- "bind_addr": "0.0.0.0",
- "advertise_addr": "{{ public_ip }}",
- "addresses": {
- "dns": "0.0.0.0",
- "http": "0.0.0.0"
- },
- "retry_join": [
- {% for selected_host in groups['cluster_nodes']|reject("sameas", ansible_fqdn) %}{# @FIXME: Reject doesn't work #}
- "{{ hostvars[selected_host]['private_ip'] }}" {{ "," if not loop.last else "" }}
- {% endfor %}
- ],
- "bootstrap_expect": 3,
- "server": true,
- "ui": true,
- "ports": {
- "dns": 53
- },
- "recursors": [
- "{{ dns_server }}"
- ],
- "encrypt": "{{ consul_gossip_encrypt }}",
- "domain": "2.cluster.deuxfleurs.fr",
- "performance": {
- "raft_multiplier": 10,
- "rpc_hold_timeout": "30s",
- "leave_drain_time": "30s"
- }
-}