Awesome info. Thanks Carl!

On Fri, Oct 23, 2009 at 1:18 PM, Carl Caum <carl.c...@gmail.com> wrote:
>
> There's two ways you can go about this.
>
> 1)  One dirty little secret of puppet is that inheritance is always
> done in order.  So if you move the includes for yum and yum-priority
> to the node basenode_centos_5, they will processed first.  I'm not
> sure if this is still true in 0.25 though.
>
> 2) Set up a package default in the base node.
>
> Package{
>        require => [ Class["yum"], Class["yum-priority"] ];
> }
>
> I'm sure there's other ways to go about this, so other feel free to
> pitch in :)
>
> On Oct 23, 2009, at 3:12 PM, Douglas Garstang wrote:
>
>>
>> I have this...
>>
>> node test_node inherits basenode_centos_5 {
>>    include yum
>>    include yum-priority
>>    include mysql_client
>>    include mysql_server
>> }
>>
>> Puppet seems to be executing stuff from the mysql_client and
>> mysql_server modules before the yum module. I had assumed that modules
>> were executed in the order that they where included, but this seems
>> not to be the case. I guess you could use requires() all over the
>> place in the mysql modules to make sure that yum had completed doing
>> it's thing first, but that seems horribly complicated to me. Is there
>> a better way? Since having your yum repositories is critical to
>> software being installed, it should always be done first.
>>
>> Please don't tell me I have to do it with requires.... :( That would
>> mean EVERY package() statement would need a requires => class['yum'],
>> right?
>>
>> Doug.
>>
>> >
>
>
> >
>



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