If you have packages in your yum class the. You shouldn't have package
resources require the yum class. Then you have a cycle because the
class requires itself which requires itself which....

On Oct 23, 2009, at 5:07 PM, Douglas Garstang wrote:

>
> Especially, since now I am getting this crap..
>
> Oct 23 15:06:10 gumby puppetd[2867]: Could not apply complete catalog:
> Found dependency cycles in the following relationships:
> Package[centos-release] => Yumrepo[CentOS-Updates], Package[yum] =>
> Package[yum
> -priorities], Yumrepo[CentOS-Updates] => Package[yum],
> Package[yum-priorities] => Package[yum], Package[yum] => Package[yum],
> Yumrepo[CentOS-Base] => Package[yum], Exec[yum_clean] => Package[yum],
> Package[c
> entos-release] => Package[yum],
> File[/etc/yum/pluginconf.d/priorities.conf] => Package[yum],
> Package[centos-release] => Yumrepo[CentOS-Base],
> Yumrepo[CentOS-Updates] => Exec[yum_clean], Yumrepo[CentOS-Updat
> es] => Exec[yum_clean], Yumrepo[CentOS-Base] => Exec[yum_clean],
> Yumrepo[CentOS-Base] => Exec[yum_clean], Package[yum-priorities] =>
> File[/etc/yum/pluginconf.d/priorities.conf], Yumrepo[CentOS-Updates]
> => P
> ackage[centos-release], Package[yum-priorities] =>
> Package[centos-release], Package[yum] => Package[centos-release],
> Yumrepo[CentOS-Base] => Package[centos-release], Exec[yum_clean] =>
> Package[centos-releas
> e], Package[centos-release] => Package[centos-release],
> File[/etc/yum/pluginconf.d/priorities.conf] => Package[centos-release]
>
> when I put this into my yum module:
>
>    Package {
>        require => [ Class["yum"], Class["yum-priority"] ]
>    }
>
> GRRRR
>
> On Fri, Oct 23, 2009 at 3:03 PM, Douglas Garstang
> <doug.garst...@gmail.com> wrote:
>> Including modules in a specific order would be nice too. It's
>> certainly easier to read and more intuitive. :)
>>
>> On Fri, Oct 23, 2009 at 2:50 PM,  <r...@devco.net> wrote:
>>>
>>> hello,
>>>
>>> ----- "Douglas Garstang" <doug.garst...@gmail.com> wrote:
>>>
>>>> Weird. You'd think this would be common problem number 1 in people
>>>> trying to use modules with puppet...
>>>
>>> It is not a problem at all.
>>>
>>> The requirement to clearly specify all your requirements, orders  
>>> and dependencies is integral to the design of Puppet.
>>>
>>> Look in the language tutorial how to set defaults for resources,  
>>> this works well and is what most people do.
>>>
>>> Additionally if you lay your modules out well with this in mind it  
>>> really is not hard to do this well, I wrote a blog post about  
>>> this, it's not perfect but perhaps it will give you some ideas.
>>>
>>> http://www.devco.net/archives/2009/09/28/simple_puppet_module_structure.php
>>>
>>> --
>>> R.I.Pienaar
>>>
>>>>>
>>>
>>
>>
>>
>> --
>> Regards,
>>
>> Douglas Garstang
>> http://www.linkedin.com/in/garstang
>> Email: doug.garst...@gmail.com
>> Cell: +1-805-340-5627
>>
>
>
>
> -- 
> 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