Hi, On 02/08/2012 02:57 PM, jimbob palmer wrote: > So say I have a single class which in order I need to ensure a file > doesn't exist, then after that install a package, then after that call > a define function.
careful: define() has nothing to do with custom functions. You create a definded *type*. You do not call a define, you create instances, resource-like entities that comprise multiple resources each. > The file package part is doable with a chain (although I could be more Absolutelzy. > confident about where they are defined), but how do I put the define > function in the chain? Suppose your defined type is define mycooltype() { }. package { "whatever": before => Mycooltype["cool-type-entity"] } If your question was geared to the effect of "i want my custom type to be defined after the package was ensured", well, that doesn't make sense. Chains and require/before are used to control the order of agent operation. That's all you need to worry about. At what time the *master* processes your define() is not important at all. Caveat: mycooltype { "cool-type-entity": require => Package["whatever"] } will *not* work out of the box. See defined types in http://docs.puppetlabs.com/guides/language_guide.html#resource-collections for details. HTH, Felix -- 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.