keyring permissions: fix PATH
PATH needs to include: - /usr/sbin and /usr/bin - /sbin and /bin for running grep and groups commands. Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
@@ -240,7 +240,7 @@ describe 'cloud::compute::hypervisor' do
|
||||
should contain_exec('add-nova-to-group').with(
|
||||
:command => 'usermod -a -G cephkeyring nova',
|
||||
:unless => 'groups nova | grep cephkeyring',
|
||||
:path => ['/usr/sbin', '/sbin']
|
||||
:path => ['/usr/sbin', '/usr/bin', '/bin', '/sbin']
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user