summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-01-17 14:38:11 -0500
committerMicah Anderson <micah@riseup.net>2013-01-17 14:38:11 -0500
commitfdcc33d4491470d88e1ab7e9869a3236d1e2c5fe (patch)
tree69eb296fc0be29ea95c3b9f9a0964795bd3adb58 /puppet
parent1c348dee62a30e33f7e00b9584629c89dcac016a (diff)
notify unbound when these configuration files change
Diffstat (limited to 'puppet')
-rw-r--r--puppet/modules/site_openvpn/manifests/resolver.pp10
1 files changed, 6 insertions, 4 deletions
diff --git a/puppet/modules/site_openvpn/manifests/resolver.pp b/puppet/modules/site_openvpn/manifests/resolver.pp
index 590af8ac..d3963c95 100644
--- a/puppet/modules/site_openvpn/manifests/resolver.pp
+++ b/puppet/modules/site_openvpn/manifests/resolver.pp
@@ -23,12 +23,14 @@ class site_openvpn::resolver {
file {
'/etc/unbound/conf.d/vpn_udp_resolver':
content => "interface: ${site_openvpn::openvpn_udp_network_prefix}.1\naccess-control: ${site_openvpn::openvpn_udp_network_prefix}.0/${site_openvpn::openvpn_udp_cidr} allow\n",
- owner => root, group => root, mode => '0644',
- require => Service['openvpn'];
+ owner => root, group => root, mode => '0644',
+ require => Service['openvpn'],
+ notify => Service['unbound'];
'/etc/unbound/conf.d/vpn_tcp_resolver':
content => "interface: ${site_openvpn::openvpn_tcp_network_prefix}.1\naccess-control: ${site_openvpn::openvpn_tcp_network_prefix}.0/${site_openvpn::openvpn_tcp_cidr} allow\n",
- owner => root, group => root, mode => '0644',
- require => Service['openvpn'];
+ owner => root, group => root, mode => '0644',
+ require => Service['openvpn'],
+ notify => Service['unbound'];
}
}