aboutsummaryrefslogtreecommitdiff
path: root/personal_infra/puppet/site/02-tinc-dns.pp
blob: ba7d57f69e46607f439a2a034f70842c788cd8d1 (plain)
1
2
3
4
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',
  }
}