commit
f8de2fb334
@ -147,6 +147,7 @@ Host *
|
|||||||
|
|
||||||
ensure_resource ('exec','add-nova-to-group', {
|
ensure_resource ('exec','add-nova-to-group', {
|
||||||
'command' => 'usermod -a -G cephkeyring nova',
|
'command' => 'usermod -a -G cephkeyring nova',
|
||||||
|
'path' => ['/usr/sbin', '/sbin'],
|
||||||
'unless' => 'groups nova | grep cephkeyring'
|
'unless' => 'groups nova | grep cephkeyring'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ define cloud::volume::backend::rbd (
|
|||||||
|
|
||||||
ensure_resource ('exec','add-cinder-to-group', {
|
ensure_resource ('exec','add-cinder-to-group', {
|
||||||
'command' => 'usermod -a -G cephkeyring cinder',
|
'command' => 'usermod -a -G cephkeyring cinder',
|
||||||
'path' => ['/usr/bin', '/bin'],
|
'path' => ['/usr/sbin', '/sbin'],
|
||||||
'unless' => 'groups cinder | grep cephkeyring'
|
'unless' => 'groups cinder | grep cephkeyring'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -239,7 +239,8 @@ describe 'cloud::compute::hypervisor' do
|
|||||||
should contain_group('cephkeyring').with(:ensure => 'present')
|
should contain_group('cephkeyring').with(:ensure => 'present')
|
||||||
should contain_exec('add-nova-to-group').with(
|
should contain_exec('add-nova-to-group').with(
|
||||||
:command => 'usermod -a -G cephkeyring nova',
|
:command => 'usermod -a -G cephkeyring nova',
|
||||||
:unless => 'groups nova | grep cephkeyring'
|
:unless => 'groups nova | grep cephkeyring',
|
||||||
|
:path => ['/usr/sbin', '/sbin']
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ describe 'cloud::volume::storage' do
|
|||||||
should contain_group('cephkeyring').with(:ensure => 'present')
|
should contain_group('cephkeyring').with(:ensure => 'present')
|
||||||
should contain_exec('add-cinder-to-group').with(
|
should contain_exec('add-cinder-to-group').with(
|
||||||
:command => 'usermod -a -G cephkeyring cinder',
|
:command => 'usermod -a -G cephkeyring cinder',
|
||||||
:path => ['/usr/bin', '/bin'],
|
:path => ['/usr/sbin', '/sbin'],
|
||||||
:unless => 'groups cinder | grep cephkeyring'
|
:unless => 'groups cinder | grep cephkeyring'
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user