diff --git a/manifests/deps.pp b/manifests/deps.pp index edb4d14..8ace269 100644 --- a/manifests/deps.pp +++ b/manifests/deps.pp @@ -21,7 +21,7 @@ class watcher::deps { # policy config should occur in the config block also. Anchor['watcher::config::begin'] - -> Openstacklib::Policy<||> + -> Openstacklib::Policy<| tag == 'watcher' |> ~> Anchor['watcher::config::end'] # all cache settings should be applied and all packages should be installed diff --git a/manifests/policy.pp b/manifests/policy.pp index 39f33fb..6750ed4 100644 --- a/manifests/policy.pp +++ b/manifests/policy.pp @@ -62,6 +62,7 @@ class watcher::policy ( file_group => $::watcher::params::group, file_format => 'yaml', purge_config => $purge_config, + tag => 'watcher', } create_resources('openstacklib::policy', { $policy_path => $policy_parameters }) diff --git a/spec/classes/watcher_policy_spec.rb b/spec/classes/watcher_policy_spec.rb index 5dd941b..1ced4a3 100644 --- a/spec/classes/watcher_policy_spec.rb +++ b/spec/classes/watcher_policy_spec.rb @@ -32,6 +32,7 @@ describe 'watcher::policy' do :file_group => 'watcher', :file_format => 'yaml', :purge_config => false, + :tag => 'watcher', ) is_expected.to contain_oslo__policy('watcher_config').with( :enforce_scope => false, @@ -61,6 +62,7 @@ describe 'watcher::policy' do :file_group => 'watcher', :file_format => 'yaml', :purge_config => true, + :tag => 'watcher', ) is_expected.to contain_oslo__policy('watcher_config').with( :enforce_scope => false,