diff --git a/manifests/deps.pp b/manifests/deps.pp index 1d5c038..f80792e 100644 --- a/manifests/deps.pp +++ b/manifests/deps.pp @@ -34,7 +34,7 @@ class zaqar::deps { # policy config should occur in the config block also. Anchor['zaqar::config::begin'] - -> Openstacklib::Policy<||> + -> Openstacklib::Policy<| tag == 'zaqar' |> ~> Anchor['zaqar::config::end'] # Installation or config changes will always restart services. diff --git a/manifests/policy.pp b/manifests/policy.pp index 692aead..2ae26be 100644 --- a/manifests/policy.pp +++ b/manifests/policy.pp @@ -65,6 +65,7 @@ class zaqar::policy ( file_group => $::zaqar::params::group, file_format => 'yaml', purge_config => $purge_config, + tag => 'zaqar', } create_resources('openstacklib::policy', { $policy_path => $policy_parameters }) diff --git a/spec/classes/zaqar_policy_spec.rb b/spec/classes/zaqar_policy_spec.rb index 1b3419a..edc2bc0 100644 --- a/spec/classes/zaqar_policy_spec.rb +++ b/spec/classes/zaqar_policy_spec.rb @@ -33,6 +33,7 @@ describe 'zaqar::policy' do :file_group => 'zaqar', :file_format => 'yaml', :purge_config => false, + :tag => 'zaqar', ) is_expected.to contain_oslo__policy('zaqar_config').with( :enforce_scope => false, @@ -63,6 +64,7 @@ describe 'zaqar::policy' do :file_group => 'zaqar', :file_format => 'yaml', :purge_config => true, + :tag => 'zaqar', ) is_expected.to contain_oslo__policy('zaqar_config').with( :enforce_scope => false,