Commit 99ebef5f authored by Adam Lewenberg's avatar Adam Lewenberg

have dnsmasq restart if /etc/resolv.conf changes

parent 96684800
......@@ -33,10 +33,12 @@ class base::dns::cache_packages {
notify => Service['dnsmasq'],
}
# Define the service and make sure it runs.
# Define the service and make sure it runs. Restart the service if
# /etc/resolv.conf changes.
service { 'dnsmasq':
ensure => 'running',
require => Package['dnsmasq'],
ensure => 'running',
require => Package['dnsmasq'],
subscribe => File['/etc/resolv.conf'],
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment