From 7c299b190206ac85b384706600ae05bd954b7521 Mon Sep 17 00:00:00 2001 From: varac Date: Sun, 2 Apr 2017 23:50:32 +0200 Subject: Change to notify instead of subscribe 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 --- manifests/stub.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'manifests/stub.pp') diff --git a/manifests/stub.pp b/manifests/stub.pp index 02797fd..0845b0e 100644 --- a/manifests/stub.pp +++ b/manifests/stub.pp @@ -25,8 +25,9 @@ define unbound::stub ( $real_settings = { stub-zone => merge($zone_name, $settings) } concat::fragment { "unbound ${title}": - target => $unbound::params::config, + target => $unbound::params::config, content => template('unbound/unbound.conf.erb'), - order => 2, + order => 2, + notify => Service[$unbound::params::service] } } -- cgit v1.2.3