fix usermod path

In a previous patch, path was set to /usr/bin but usermod is in
/usr/sbin.

Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
Emilien Macchi
2014-04-26 14:53:50 +02:00
parent 78c40dfe52
commit faaa9ffb4b
4 changed files with 5 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ describe 'cloud::volume::storage' do
should contain_group('cephkeyring').with(:ensure => 'present')
should contain_exec('add-cinder-to-group').with(
:command => 'usermod -a -G cephkeyring cinder',
:path => ['/usr/bin', '/bin'],
:path => ['/usr/sbin', '/sbin'],
:unless => 'groups cinder | grep cephkeyring'
)
end