Try to stabilize DNS
Add all cluster nodes to each nodes resolv.conf and update blocky config template to delay render on update to avoid unnecessary restarts
This commit is contained in:
parent
7bed73b9a7
commit
fd731971d3
@ -63,7 +63,8 @@
|
|||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/resolv.conf
|
dest: /etc/resolv.conf
|
||||||
create: true
|
create: true
|
||||||
line: "nameserver {{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}"
|
line: "nameserver {{ hostvars[item].ansible_default_ipv4.address }}"
|
||||||
|
loop: "{{ ansible_play_hosts }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Setup Vault cluster
|
- name: Setup Vault cluster
|
||||||
|
@ -129,6 +129,11 @@ job "blocky" {
|
|||||||
data = var.config_data
|
data = var.config_data
|
||||||
destination = "app/config.yml"
|
destination = "app/config.yml"
|
||||||
splay = "1m"
|
splay = "1m"
|
||||||
|
|
||||||
|
wait {
|
||||||
|
min = "10s"
|
||||||
|
max = "20s"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user