On Wed, May 11, 2011 at 12:17 AM, Julien Garet <julien.ga...@inria.fr>wrote:
> Hello, > I am facing a strange behaviour with exported resources overriding in > 0.25.5 (CentOS). I am using nagios with exported resources. In my base > class, I define a hostgroup by default for all nodes. In an apache vhost > define, I override this hostgroup to a value common to all webservers. This > works. > But in another class, I use apache vhost define but I want to override > another time the hostgroup to set it to another value. This does not work, > the hostgroup for the host is set to the one for apache vhosts. > > Is there a way to tell that the last resource override should happen after > the apache vhost define is applied ? > Unfortunately there isn't. The feature you're using to override resources is actually a bit of an unintended consequence of another feature added to Puppet in 0.25.5. In Puppet 2.7, the order these resources will be evaluated in will be guaranteed to be deterministic, so this will help with testing and staging into pre-production, but currently the best practice is to not override the same parameter using the collection syntax. Hope this helps, -- Jeff McCune Puppet Labs @0xEFF -- 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.