policy.json: Allow one to manage them from the puppet module

This commit allow a deployer to manage the policies via this module
It relies on augeas to change only the policy needed. The init takes
a hash of policies and apply them.

Change-Id: I6ee27a1c4c26c73f5954e6462097fb5ed4dbb7ea
This commit is contained in:
Yanis Guenane
2014-09-26 19:03:16 -04:00
parent abd028a5f6
commit c90a835953
4 changed files with 72 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ describe 'glance::api' do
end
it { should contain_class 'glance' }
it { should contain_class 'glance::policy' }
it { should contain_service('glance-api').with(
'ensure' => (param_hash[:manage_service] && param_hash[:enabled]) ? 'running': 'stopped',