Hello guys,
I'm creating class for update my servers these are Centos (RedHat Family) . But when i run from puppet client, only apply update version but the command "yum update" declared within in my class not found .
My class "updateso" (/etc/puppet/modules/updateso/manifests/init.pp) :
[.............]
class updateso {
#operatingsystem => CentOS
#operatingsystemrelease => 5.8
#osfamily => RedHat
#architecture => x86_64
if $osfamily == 'RedHat' {
schedule { "daily":
period => daily,
range => "12 - 17",
repeat => "1",
}
exec { "Update SO":
user => "root",
command => "/usr/bin/yum --exclude=kernel* --exclude=mysql* --exclude=php* update -y",
schedule => daily,
refreshonly => true,
}
}
} #End class
[.............]
My instance site.pp
[.............]
[.............]
From agent:
[.............]
[root@correo ~]# puppet agent --test
info: Applying configuration version '1357155391'
notice: Finished catalog run in 0.12 seconds
[.............]
¿Any suggestions?
Thanks!