diff options
| author | alex <alex@pdp7.net> | 2023-10-07 02:04:52 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-10-07 02:04:52 +0200 |
| commit | 185a32273998435a269f6772d3618defe42ef6ed (patch) | |
| tree | 1b4fc265a5d91b723c84cfe1f0fb057e3cfcb0e9 | |
| parent | fe428805ff8e7901010a64a526b032c79b0ae414 (diff) | |
Hack tinc+dnsmasq issues on EL9
| -rw-r--r-- | personal_infra/puppet/site/02-tinc-dns.pp | 5 |
1 files changed, 5 insertions, 0 deletions
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 00000000..ba7d57f6 --- /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', + } +} |
