FAQ

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 puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedJul 22, '13 at 4:10p
activeJul 29, '13 at 4:20p
posts3
users3
websitepuppetlabs.com

3 users in discussion

Sneha More: 1 post Jcbollinger: 1 post Cko: 1 post

People

Translate

site design / logo © 2021 Grokbase