James,

No, that didn't work for me. When I put the default Package{} in the
base node that required the class yum, puppet complained about cyclic
object dependancies.

Also, I do need to replace all the repo's since we are pointing
everything to our own repos and not using the public ones. The
kickstart process (with help from cobbler) puts a default repo in
/etc/yum.repos.d, which is just enough to get puppet and any
dependancies installed. When puppet comes up, it removes this default
repo and puts it's own in /etc/yum.repos.d.

There's actually other modules that MUST be installed first, after
yum. If ldap is only partialled installed, everything goes to hell in
a handbasket. Even a groupadd excited by yum will just hang, so ldap
needs to go in right after yum, and before anything else.

Doug

On Sat, Oct 24, 2009 at 5:35 PM, James Turnbull <ja...@lovedthanlost.net> wrote:
>
> 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)
>
> >
>



-- 
Regards,

Douglas Garstang
http://www.linkedin.com/in/garstang
Email: doug.garst...@gmail.com
Cell: +1-805-340-5627

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