X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Funbound%2Fmanifests%2Finit.pp;h=6c58a7d7b7bdc8c5c778224fe2bdc25210817539;hb=103c20fec9e53838c741754d4b80ddb24345e9d4;hp=53a2ae9fbd55ad592420908e89925561c0ff54ac;hpb=8176ffb0ccdbda70b4b5bb77b9c371d22b520dff;p=mirror%2Fdsa-puppet.git diff --git a/modules/unbound/manifests/init.pp b/modules/unbound/manifests/init.pp index 53a2ae9fb..6c58a7d7b 100644 --- a/modules/unbound/manifests/init.pp +++ b/modules/unbound/manifests/init.pp @@ -16,8 +16,6 @@ class unbound { group => unbound, mode => 775, ; - } - file { "/var/lib/unbound/root.key": ensure => present, replace => false, @@ -25,10 +23,7 @@ class unbound { group => unbound, mode => 644, source => [ "puppet:///modules/unbound/root.key" ], - notify => Exec["unbound restart"], ; - } - file { "/var/lib/unbound/debian.org.key": ensure => present, replace => false, @@ -36,13 +31,10 @@ class unbound { group => unbound, mode => 644, source => [ "puppet:///modules/unbound/debian.org.key" ], - notify => Exec["unbound restart"], ; - } - file { "/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,