On Tue, Mar 1, 2011 at 7:22 PM, Patrick <kc7...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to