Hi,

On 06/08/2012 03:03 PM, jcbollinger wrote:
> The 'before' is a Puppet metaparameter, so every
> resource type provides it automatically; you would not need to write
> code for it in your definition.

sadly, this is only half true.

Yes, you can specify before, requires etc. to all instances of your
defined types. However, without extra code, it will do *nothing* (aside
from confusing you each single time you look at it ;-)

See
http://docs.puppetlabs.com/guides/language_guide.html#resource-collections.

"""
Any metaparameters used when a defined resource is declared are also
made available in the definition as variables:
[...]
The above is perhaps not a perfect example, as most likely we would know
that subversion was always required for svn checkouts, but it
illustrates how require and other metaparameters can be used in defined
types.
"""

They won't propagate to resources inside your defined type the way
requiring a class propagates the requirement to each resource inside the
class. You've got to put this into code.

Regards,
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.

Reply via email to