keyring: use exec to manage cephkeyring group
- Add 'nova' user to 'cephkeyring' group with ensure_resource - Add 'cinder' user to 'cephkeyring' group with ensure_resource - Update fixtures & Puppetfile to lastest commit in puppet-cinder stable/havana - Add a unit test with multiple RBD backends
This commit is contained in:
@@ -240,6 +240,10 @@ describe 'cloud::compute::hypervisor' do
|
||||
should contain_nova_config('DEFAULT/rbd_user').with('value' => 'cinder')
|
||||
should contain_nova_config('DEFAULT/rbd_secret_uuid').with('value' => 'secrete')
|
||||
should contain_group('cephkeyring').with(:ensure => 'present')
|
||||
should contain_exec('add-nova-to-group').with(
|
||||
:command => 'usermod -a -G cephkeyring nova',
|
||||
:unless => 'groups nova | grep cephkeyring'
|
||||
)
|
||||
end
|
||||
|
||||
it 'configure nova-compute with extra parameters' do
|
||||
|
||||
Reference in New Issue
Block a user