On Mon, Feb 13, 2012 at 3:37 PM, Justin Lloyd <[email protected]> wrote:
> I was wondering if I'd need to create a define() but the language guide's
> description seems misleading, at least to me. From the 6th paragraph of the
> Resources section:
>
> http://docs.puppetlabs.com/guides/language_guide.html#resources
>
> The field before the colon is the resource’s title, which must be unique and
> can be used to refer to the resource in other parts of the Puppet
> configuration.

You can refer to the title of the resource in a defined type as $name,
you can't use $name when you declare a resource. This page explains in
further detail about the unique constraint:

http://docs.puppetlabs.com/learning/definedtypes.html

HTH,

Nan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to