On Friday, November 1, 2013 11:52:36 AM UTC-5, Jesi Major wrote: > > We're having an issue where the catalog doesn't appear to be compiling in > the proper order >
It took me a minute to parse Chris's response, so in case it's taking you longer, it boils down to this: there is no such thing as "proper" compilation order. Puppet makes no particular guarantees about the order in which manifest files will be processed during catalog compilation, other than that the site manifest is processed first. > , causing a resource to be defined twice (since the if ! defined block > runs first) and the catalog compilation to fail: > > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: > Duplicate declaration: File[/data] is already declared in file > /etc/puppet/environments/jesim/modules/cassandra/manifests/config.pp:58; > cannot redeclare at > /etc/puppet/environments/jesim/modules/lvm/manifests/mount.pp:60 > > > We are aware of the behavior of resources creeping out of included classes, > Resources do not "creep out" of included classes, but included classes themselves are not inherently constrained relative to the class declaring them. In any case, that is strictly an order of application issue; it has nothing to do with compilation order. > We were under the impression that proper anchoring would make the catalog compile in the appropriate order, but I do not believe it is working. Is this a known issue? It is known behavior, but it is not an "issue". Like everything else involving resource relationships, anchors constrain order of resource application, not order of catalog compilation. This topic is not well suited to puppet-dev, which is about development of the Puppet program. Issues related to writing manifests for Puppet would be on-topic next door in puppet-users. If you ask there then I'm sure you will get some help. Probably even from me. John -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/118cdd8d-7c43-4457-8028-7a264d92623b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
