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? -- 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.
Hi, I think require=>Class[...] works only for class files in module, it does not work for modules. You can try this: node "server.my.fqdn" { stage{ ''first'': } stage{ ''second'': } Stage[first]->Stage[second] class { "puppet_agent": stage => first, } class {"base_config: stage => second, } } Regards, Sneha More. NTT DATA GTS.(OSS Centre) On Monday, July 22, 2013 9:40:53 PM UTC+5:30, 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? > >-- 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.
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.