On Mar 12, 4:46 am, Jakov Sosic <[email protected]> wrote:
> Hi.
>
> How do you handle CentOS updates/upgrades with puppet? Is there only way
> to count all the packages and put them in manifests like:
>
> package: ensure=>latest,
>
> I am evaluating puppet, and currently I have problem with upgrading from
> CentOS 5.x->5.x+1.
If your yum repositories are configured to point at the generic URLs
for your CentOS major version (and Puppet can ensure that), then you
could put this in your manifests to keep all installed packages up to
date:
exec { 'update-all-packages':
command => '/usr/bin/yum update'
}
Really, however, performing a singular action such as an operating
system update is not what Puppet is designed to do. Any way you try
to do it with Puppet has its problems, including the above Exec. This
sort of job more appropriate for MCollective or a similar tool.
John
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.