From 185a32273998435a269f6772d3618defe42ef6ed Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 7 Oct 2023 02:04:52 +0200 Subject: [PATCH] Hack tinc+dnsmasq issues on EL9 --- personal_infra/puppet/site/02-tinc-dns.pp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 personal_infra/puppet/site/02-tinc-dns.pp diff --git a/personal_infra/puppet/site/02-tinc-dns.pp b/personal_infra/puppet/site/02-tinc-dns.pp new file mode 100644 index 0000000..ba7d57f --- /dev/null +++ b/personal_infra/puppet/site/02-tinc-dns.pp @@ -0,0 +1,5 @@ +if($facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '9' and 'tinc' in lookup("group_names") and 'dns' in lookup("group_names")) { + exec {'/bin/sed -i "s/^bind-interfaces/bind-dynamic #bind-interfaces/" /etc/dnsmasq.conf': + unless => '/bin/grep "bind-dynamic #bind-interfaces" /etc/dnsmasq.conf', + } +} -- 2.47.3