On Thursday, November 26, 2015 at 9:34:37 PM UTC-6, Haani Niyaz wrote:
> As you can see in the output above server_packges will be executed again > after the execution of some_class: > Notice: Class[some_class::Service]: Would have triggered 'refresh' from 2 > events > Notice: /Stage[main]/Server_packages/Package[mysql-devel.x86_64]/ensure: > current_value absent, should be present (noop) > > No, I don't see that, nor any reason to suppose it. The output you presented lists Package[mysql-devel.x86_64] exactly once. Puppet chooses to manage it later in the run than it does other packages that (I presume) are managed via your Class[server-packages], including the related package Package[mysql.x86_64], but you have not shown any ordering constraints that would instruct Puppet to do otherwise. > > I came across the following which seems to highlight the problem but it > was fixed in an older version: > > > *create_resources should contain native types in the local scope* > > > https://projects.puppetlabs.com/issues/8032 > > That bug was reported against Puppet 2.7.0 and fixed in version 2.7.3. Nothing you have presented suggests a regression. Probably you have a misunderstanding about the nature of Puppet classes. Although classes serve as logical containers for resources, Puppet does not inherently prevent application of different containers from overlapping, which is what you appear to be seeing -- application of resources from at least two different containers interleaved. If you want to influence the order in which resources are applied then you must employ appropriate order-of-application constraints <https://docs.puppetlabs.com/puppet/3/reference/lang_relationships.html>. 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/98bc1a52-bff4-40a1-8709-0b538e4096e3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.