diff --git a/manifests/deps.pp b/manifests/deps.pp index fc944cc0..55ef0367 100644 --- a/manifests/deps.pp +++ b/manifests/deps.pp @@ -35,7 +35,7 @@ class gnocchi::deps { # policy config should occur in the config block also. Anchor['gnocchi::config::begin'] - -> Openstacklib::Policy<||> + -> Openstacklib::Policy<| tag == 'gnocchi' |> ~> Anchor['gnocchi::config::end'] # On any uwsgi config change, we must restart gnocchi-api. diff --git a/manifests/policy.pp b/manifests/policy.pp index 1dc91905..ed24d463 100644 --- a/manifests/policy.pp +++ b/manifests/policy.pp @@ -67,6 +67,7 @@ class gnocchi::policy ( file_group => $::gnocchi::params::group, file_format => 'yaml', purge_config => $purge_config, + tag => 'gnocchi', } create_resources('openstacklib::policy', { $policy_path => $policy_parameters }) diff --git a/spec/classes/gnocchi_policy_spec.rb b/spec/classes/gnocchi_policy_spec.rb index 078ca649..ecb842e4 100644 --- a/spec/classes/gnocchi_policy_spec.rb +++ b/spec/classes/gnocchi_policy_spec.rb @@ -33,6 +33,7 @@ describe 'gnocchi::policy' do :file_group => 'gnocchi', :file_format => 'yaml', :purge_config => false, + :tag => 'gnocchi', ) is_expected.to contain_oslo__policy('gnocchi_config').with( :enforce_scope => false, @@ -63,6 +64,7 @@ describe 'gnocchi::policy' do :file_group => 'gnocchi', :file_format => 'yaml', :purge_config => true, + :tag => 'gnocchi', ) is_expected.to contain_oslo__policy('gnocchi_config').with( :enforce_scope => false,