Hello,

Le 31/10/11 à 16:09, jcbollinger téléscripta :
> On Oct 28, 10:07 am, Baptiste Grenier <[email protected]>
> wrote:
> 
> > I am trying to define the modules' run order like this:
> 
> You are running up against a common source of confusion: the
> difference between order of manifest evaluation (on the master) and
> order of catalog application (on the client).  You appear to be
> conflating the two into "run order", but in general there is no need
> for them to be the same, and indeed, one sometimes wants them to
> differ.
> 
> Evaluation order affects (only) the compilation of your manifests into
> a catalog, and the key mechanisms available for influencing it are
> (1) the 'require' and 'include' functions (*not* the 'require'
> resource metaparameter), and
> (2) lexical order within individual manifest files
> 
> Application order affects (only) the order in which resources are
> applied to your nodes, but that's irrelevant if catalog compilation
> fails.  The user-accessible mechanisms for influencing it are
> (1) the 'require' resource metaparameter and its friends,
> (2) the arrow syntax for defining resource relationships,
> (3) run stages, and
> (4) the 'require' function (which also affects order of manifest
> evaluation)

Thanks for all this information, I will do some more tests to see if I
can achieve my goal (see next paragraph).

> You have an evaluation order problem, and you have tried to fix it by
> constraining the application order.  Instead, you want something like
> this:
> 
> [...]
> 
> class sudo {
>   # KEY CHANGE:
>   include "aptdater::client"

The problem is that I want to be able to include the sudo class without 
including the aptdater::client class: some node can have sudo managed, 
but won't be configured for apt-dater.

I could perhaps use a parametrized class like with something like an
aptdater_client_enabled paramter, but I don't find this very nice...
It's why I am trying to test a variable to see if aptdater::client is 
enabled.

Is there another better/cleaner/simpler way of doing this?

> John

Regards,
Baptiste

-- 
\,,/_[-_-]_\,,/
http://asocial.ws/gwarf

I'm having a RELIGIOUS EXPERIENCE ... and I don't take any DRUGS

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to