Add missing path to exec resources

Due to hiera reformating, exec does not have a default values
for path. Hence it needs to be specified.
This commit is contained in:
Yanis Guenane 2014-04-26 00:00:36 -04:00
parent 92afd4cb0c
commit 7dd4f5f64e
2 changed files with 2 additions and 0 deletions

View File

@ -269,6 +269,7 @@ class cloud::database::sql (
exec{'clean-mysql-binlog':
# first sync take a long time
command => "/bin/bash -c '/usr/bin/mysqladmin --defaults-file=/root/.my.cnf shutdown ; /bin/rm ${::mysql::params::datadir}/ib_logfile*'",
path => '/usr/bin',
require => [
File['/root/.my.cnf'],
Service['mysqld'],

View File

@ -82,6 +82,7 @@ define cloud::volume::backend::rbd (
ensure_resource ('exec','add-cinder-to-group', {
'command' => 'usermod -a -G cephkeyring cinder',
'path' => ['/usr/bin', '/bin'],
'unless' => 'groups cinder | grep cephkeyring'
})