thierry.thelliez.tech@gmail.com
2009-Apr-13 18:23 UTC
[Puppet Users] Can I use Puppet to run system updates?
Hello, Reading the doc I could not find if Puppet could help running system updates. I would like to get started with several VMWare guests and few hosts, all running CentOS. Some are 32bits, some 64bits. These are mostly VMWare server installations; just starting ESXi with one system. They are running different apps/configurations. Of course there are few issues with: 1- VMWare tools that want to be sometimes recompiled on Linux. There is a trick to avoid the recompilation: http://vmetc.com/2008/08/31/automating-vmware-tools-installs-and-upgrades-in-linux-guests/ but maybe this could be taken care of with Puppet? 2- VMWare server on the host sometimes does not restart after a kernel update. It also need to be recompiled. Of course the VM Guests are down. 3- The host kernel updates might require reboot, shutting down guests. Can Puppet help for these tasks? Examples? Thanks, Thierry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Ross McKerchar
2009-Apr-14 09:21 UTC
[Puppet Users] Re: Can I use Puppet to run system updates?
> -----Original Message----- > From: puppet-users@googlegroups.com [mailto:puppet- > users@googlegroups.com] On Behalf Of thierry.thelliez.tech@gmail.com > Sent: 13 April 2009 19:23 > To: Puppet Users > Subject: [Puppet Users] Can I use Puppet to run system updates? > > 1- VMWare tools that want to be sometimes recompiled on Linux. There > is a trick to avoid the recompilation: > http://vmetc.com/2008/08/31/automating-vmware-tools-installs-and- > upgrades-in-linux-guests/ > but maybe this could be taken care of with Puppet? > > 2- VMWare server on the host sometimes does not restart after a kernel > update. It also need to be recompiled. Of course the VM Guests are > down. > > 3- The host kernel updates might require reboot, shutting down guests. > > > Can Puppet help for these tasks? Examples?Yes puppet can probably help with all the above but maybe not in the way you expect :) Puppet is good at managing your system configurations and although it can, via the exec statement, do a lot more it''s not always the best tool for the job. A few, hopefully relevant examples: 1) System updates - yes you could have puppet run you''re update command directly but instead you''re maybe better off using puppet to control the configuration of your updating system, a few examples that I use: Use puppet to control the cron jobs required for system updates (puppet creates and manages the cron jobs, it _doesn''t_ run the commands directly). Use puppet to install, setup & control the yum-versionlock plugin, this plugin allows you to prevent updates of certain components. Use puppet to install, setup & control yum-updatesd (the update notification daemon). 2) VM kernel modules Use puppet to automatically install the open-vm-tools yum repository on any box that is a VM (easily deducible from facter), this repo has VMware kernel modules precompiled for rhel5. Use puppet to control the aformentation yum-versionlock plugin to ensure that the kernel doesn''t get updated when there isn''t an appropriate vmware kernel module for the new version. Alternatively, use puppet to ensure that all VM''s have the necessary packages required to compile kernel modules. I guess my main point is, make sure you use the right tool for the job - it may not be puppet but puppet can probably control the right tool quite nicely :) hth. -ross Sophos Plc, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, United Kingdom. Company Reg No 2096520. VAT Reg No GB 348 3873 20. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---