On Monday, July 22, 2013 11:10:53 AM UTC-5, cko wrote:
>
> hi everyone,
>
> my *site.pp* looks like this:
>
>
> node "server.my.fqdn" { 
>    class { "puppet_agent": } 
>    class {"base_config:
>                      require=>Class["puppet_agent"]
>              }
> }
>
> im trying to achieve that the "puppet_agent" module is applied before the 
> "base config" modules. 
>
> however, the puppet_agent module gets installed LAST.
>
> any ideas?
>
>

Yes.  You are probably mistaken about the order in which the classes 
themselves are applied.  Instead, you almost certainly have a containment 
problem.  The symptom you would have noticed is that one or more classes 
(but not any resources) declared by class 'puppet_agent' are applied after 
one or more classes (but not any resources) declared by class base_config.  
In brief, if you search the archives of this group for "containment" and 
"anchor pattern" (the latter being the usual solution) then you should find 
lots of relevant information.

If you remain uncertain about whether yours is a containment problem, then 
post your classes and the output from which you concluded that ordering was 
not working correctly.

Also, relationships work the same for all classes, including module-level 
classes such as yours.  Run stages would be a rather heavy-handed solution 
to your problem, and they sometimes cause more problems than they solve.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to