summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-04-02 23:50:32 +0200
committervarac <varacanero@zeromail.org>2017-04-02 23:50:32 +0200
commit7c299b190206ac85b384706600ae05bd954b7521 (patch)
tree3844024282c6f5aa77a46a90bce91013a78d50fd /manifests/init.pp
parent4e39c4ed5fb89330c86b0c50110ef37ff32c000d (diff)
Change to notify instead of subscribeHEADmaster
After making the module compatible with puppetlabs/concat, subscribing to the config file failed with: Error: Failed to apply catalog: Could not find dependency File[/etc/unbound/unbound.conf] for Service[unbound] at /etc/puppet/modules/unbound/manifests/service.pp:21 So we use notify now from every concat::fragment
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 8b1c3e5..e06207e 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -109,8 +109,9 @@ class unbound (
}
concat::fragment { 'unbound server':
- target => $unbound::params::config,
+ target => $unbound::params::config,
content => template('unbound/unbound.conf.erb'),
- order => 1,
+ order => 1,
+ notify => Service[$unbound::params::service]
}
}