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 8cc56e8..1d67e2f 100644 --- a/manifests/policy.pp +++ b/manifests/policy.pp @@ -67,6 +67,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 fcca97a..560205e 100644 --- a/spec/classes/watcher_policy_spec.rb +++ b/spec/classes/watcher_policy_spec.rb @@ -33,6 +33,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, @@ -63,6 +64,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,