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:
parent
92afd4cb0c
commit
7dd4f5f64e
@ -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'],
|
||||
|
@ -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'
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user