On Oct 23, 5:07 pm, Douglas Garstang <doug.garst...@gmail.com> 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:
[...]

Many programmers and sysadmins used to procedural languages such as C
or shell script have trouble adjusting to declarative languages such
as Puppet's.  The lack of order-of-execution control seems to leave
them a bit disoriented.  When such people start with Puppet they need
to grasp the fact that you don't tell Puppet what to do; rather, you
describe the goals you want it to achieve.  At the core, those goals
amount to a achieving a specific states for each resource in a
collection of resources. Puppet chooses for itself what steps to take,
in what order, to achieve those goals efficiently.

Where there are dependencies among the managed resources, Puppet will
choose a path that accommodates them, as long as you describe the
dependencies accurately.  Sometimes you can luck out with
underspecified dependencies, and sometimes overspecified dependencies
are (mostly) harmless, but both those situations are brittle and
better avoided.

In your particular case, you may be able to take advantage of the fact
that Puppet resource defaults are not global (unless declared at
global scope; see 
http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#resource-defaults).
You probably need to think a bit about the actual relationships,
though.  You have an inherently tricky situation because you are using
yum to manage itself.  For this to work manually, you need to make
some assumptions: that some version of yum is already present, that
the starting repository configuration is sufficient to bootstrap, and
perhaps others.  For it to work under Puppet, then, you need to enable
Puppet to make equivalent assumptions.

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