Install Security Updates via Puppet Master on Agents
Hi we have Puppet Master agent setup working fine. We intend to do central Security updates on all agents connected to Puppet Master. Mcollective plugin is also installed and We tried following two approaches:
Restart puppet service on agent via MCO from Master, As when puppet is restarted It gets sync to Master for its setting and on Master(Site.pp) lets suppose we define these two commands to execute. (Apt-get update & aptitude safe-upgrade) cmd: mco rpc service restart service=puppet -S hostname=nodename Result: puppet on node gets restarted and Apt-get update & aptitude safe-upgrade are run in background. Issue: On Puppet Master we only get service puppet is running.No clue whether these commands(Apt-get update & aptitude safe-upgrade) runs successfully or not.
Run command on puppet agent From puppet Master via MCO CMD: mco rpc nrpe runcommand command=puppetrestart -I node -v puppetrestart is defined as a nrpe cmd on agent that contains "puppet agent -t" Result: On agent it sync with Master and runs cmds in background. Issue: As it is nrpe cmd and apt-get and aptitude takes time , we get time-out response on Puppet Master end, Means we are not sure whether cmds executed successfully or not
Is there any way to Install Security updates on all connected agents while remaining on Puppet Master? Any help or suggestion will be appreciated Thanks