Skip to content
Snippets Groups Projects
Commit 99ebef5f authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

have dnsmasq restart if /etc/resolv.conf changes

parent 96684800
No related branches found
No related tags found
No related merge requests found
...@@ -33,10 +33,12 @@ class base::dns::cache_packages { ...@@ -33,10 +33,12 @@ class base::dns::cache_packages {
notify => Service['dnsmasq'], 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': service { 'dnsmasq':
ensure => 'running', ensure => 'running',
require => Package['dnsmasq'], require => Package['dnsmasq'],
subscribe => File['/etc/resolv.conf'],
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment