On Wednesday, July 19, 2017 at 5:27:39 AM UTC-5, Abhishek Kane wrote: > > Hi puppet experts, > > In classA I am calling some custom type and then calling classB. classB is > dependent on the work that is done in custom types. > > But in the puppet apply command I see that classB gets called before the > custom type, and it fails. > > Is there a way to sync these calls? >
You "call" functions. You "declare" classes and resources. Ultimately, these function calls and class and resource declarations collectively result in the production of a "catalog" describing the configuration properties that must be ensured and a set of relationships among them that influence the order in which those properties must be synchronized. Puppet synchronizes the target machine state with the catalog in a manner and order it chooses, subject to the constraints of the ordering relationships in the catalog. So yes, Puppet has ways to direct the relative order of application of classes and resources. The Puppet language reference has a whole section discussing the details <https://docs.puppet.com/puppet/5.0/lang_relationships.html>, and you should read it. Be sure to select the manual version corresponding to the Puppet version you are using. While you're at it, you may want to read the rest of the language reference, too. 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/aaaebf75-65cb-4a4f-8f55-e6bff28250b5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.