Hi folks,
I''m very new to Puppet and perhaps what I''m trying to do is a
trivial
thing. No so much for me though..
I use Puppet 2.6 to manage a bunch of CentOS 5 servers. A handful of web
servers, a handful of app-tier servers and a couple of other hosts -
ldap, mail, etc.
I''ve got a CentOS 5.5 repo on the Puppet/Kickstart server and install
everything from there, obviously a slightly different package sets for
each type of server.
Now the question: can I use Puppet to fetch all the latest updates from
the updates repo? I know how to configure the yum repo with Puppet but
don''t know how to trigger the update?
Ideally something like:
ensure => no-more-package-updates-available
should do the trick :)
How can I do that?
Thx!
GiBo
--
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.
On Mar 1, 2011, at 4:58 PM, Giovanni Bordello wrote:> Hi folks, > > I''m very new to Puppet and perhaps what I''m trying to do is a trivial thing. No so much for me though.. > > I use Puppet 2.6 to manage a bunch of CentOS 5 servers. A handful of web servers, a handful of app-tier servers and a couple of other hosts - ldap, mail, etc. > > I''ve got a CentOS 5.5 repo on the Puppet/Kickstart server and install everything from there, obviously a slightly different package sets for each type of server. > > Now the question: can I use Puppet to fetch all the latest updates from the updates repo? I know how to configure the yum repo with Puppet but don''t know how to trigger the update? > > Ideally something like: > ensure => no-more-package-updates-available > should do the trick :)Will make sure a package is installed: package { "mysql-server": ensure => present } Will make sure a package is always up to date with the package database. (Or depending on the provider, this might be the locally cached version of the package database): package { "mysql-server": ensure => latest } #Note: this may cause a large load on your package mirror if the provider checks if the package is up to date on each run. A local caching proxy or mirror is recommended. If you want to make sure that all installed packages, you need something like this: #Treat this is pesudo-code because I haven''t used Yum for a very long time exec { "/usr/sbin/yum --yes update": #Using something to make this not run on every run is useful. At the least, once per day should be enough. } #Again: this may cause a large load on your package mirror if the provider checks if the package is up to date on each run. A local caching proxy or mirror is recommended. -- 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.
Douglas Garstang
2011-Mar-03 08:11 UTC
Re: [Puppet Users] Updating all packages with Puppet
On Tue, Mar 1, 2011 at 7:22 PM, Patrick <kc7zzv@gmail.com> wrote:> > On Mar 1, 2011, at 4:58 PM, Giovanni Bordello wrote: > > Hi folks, > > I''m very new to Puppet and perhaps what I''m trying to do is a trivial > thing. No so much for me though.. > > I use Puppet 2.6 to manage a bunch of CentOS 5 servers. A handful of web > servers, a handful of app-tier servers and a couple of other hosts - ldap, > mail, etc. > > I''ve got a CentOS 5.5 repo on the Puppet/Kickstart server and install > everything from there, obviously a slightly different package sets for each > type of server. > > Now the question: can I use Puppet to fetch all the latest updates from the > updates repo? I know how to configure the yum repo with Puppet but don''t > know how to trigger the update? > > Ideally something like: > ensure => no-more-package-updates-available > should do the trick :) > > > Will make sure a package is installed: > package { "mysql-server": > ensure => present > } > > Will make sure a package is always up to date with the package database. > (Or depending on the provider, this might be the locally cached version of > the package database): > package { "mysql-server": > ensure => latest > } > #Note: this may cause a large load on your package mirror if the provider > checks if the package is up to date on each run. A local caching proxy or > mirror is recommended. >With Centos, you can also use: package { ensure => "$version"; } to make sure a specific version of an RPM is installed. I don''t think that''s actually documented. Doug. -- 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.
On Thu, Mar 03, 2011 at 12:11:23AM -0800, Douglas Garstang wrote:> to make sure a specific version of an RPM is installed. I don''t think that''s > actually documented.RPM is listed as versionable at http://docs.puppetlabs.com/references/latest/type.html#package so it is documented there certainly. -- Ben Hughes || http://www.puppetlabs.com/ -- 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.