X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Funbound%2Fmanifests%2Finit.pp;h=f01b7fd74a370a889c2cfacdbc7c5eecb3b4b001;hb=8c68c6d54aa328ea95126ed5f369039c1d2fff80;hp=9ef5d9dad544ced31ee77710bc154d0b72af4407;hpb=a45e9562bc9908f929b81efe532d64f20c03242a;p=mirror%2Fdsa-puppet.git diff --git a/modules/unbound/manifests/init.pp b/modules/unbound/manifests/init.pp index 9ef5d9dad..f01b7fd74 100644 --- a/modules/unbound/manifests/init.pp +++ b/modules/unbound/manifests/init.pp @@ -14,6 +14,7 @@ class unbound { ensure => directory, owner => unbound, group => unbound, + require => Package["unbound"], mode => 775, ; "/var/lib/unbound/root.key": @@ -23,7 +24,6 @@ class unbound { group => unbound, mode => 644, source => [ "puppet:///modules/unbound/root.key" ], - notify => Exec["unbound restart"], ; "/var/lib/unbound/debian.org.key": ensure => present, @@ -32,11 +32,10 @@ class unbound { group => unbound, mode => 644, source => [ "puppet:///modules/unbound/debian.org.key" ], - notify => Exec["unbound restart"], ; "/etc/unbound/unbound.conf": content => template("unbound/unbound.conf.erb"), - require => Package["unbound"], + require => [ Package["unbound"], File['/var/lib/unbound/root.key'], File['/var/lib/unbound/debian.org.key'] ], notify => Exec["unbound restart"], owner => root, group => root,