2009/10/25 Douglas Garstang <doug.garst...@gmail.com>:
>
> Yes, but HOW do I order it? What is the best way to do it? I assumed
> that modules were implemented in the order they are included, which
> turned out to be wrong. Someone suggested that the node hierarchy
> determined the order, and that didn't work for me. I tried putting a
> global Paclage{} statement in my base node that required my yum repos,
> and that partly did it, but still installed yum-priorities way later
> on. I tried putting a requires => Class['yum-priorities'] in my base
> class and puppet complained about module looping!
>

I haven't been following the other thread but what is wrong with:

* Yum class/module (which doesn't need to install Yum since it's in
base or whatever its called)
* Yum modules loads required repos (again you only need EPEL or any
other non-standard repos since CentOS is already in the pre-installed
repositories), installs any other packages, tasks etc.

Then add a require to your site.pp or to a base node or whatever:

Package { require => Class["yum"] }

That will include everything in the yum class prior to executing any
package resources.  This doesn't work for you?

Regards

James Turnbull

-- 
Author of:
* Pro Linux System Administration (http://tinyurl.com/linuxadmin)
* Pulling Strings with Puppet (http://tinyurl.com/pupbook)
* Pro Nagios 2.0 (http://tinyurl.com/pronagios)
* Hardening Linux (http://tinyurl.com/hardeninglinux)

--~--~---------~--~----~------------~-------~--~----~
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