keyring: use a specific group for permissions

- create a group 'cephkeyring'
- ensure nova and cinder are part of this group.

Note: I don't use Puppet to manage the users, since it's already managed
by puppet-cinder and puppet-nova.

Bug #402
This commit is contained in:
Emilien Macchi
2014-04-11 11:16:25 +02:00
parent a9bb8537d5
commit 9c73677a19
5 changed files with 40 additions and 8 deletions

View File

@@ -106,6 +106,8 @@ describe 'cloud::volume::storage' do
:os_password => 'secret',
:os_auth_url => 'http://keystone.host:5000/v2.0'
)
should contain_exec('add-cinder-to-cephkeyring-group').with( :command => 'useradd -G cephkeyring cinder || true')
should contain_group('cephkeyring').with(:ensure => 'present')
end
end