On Fri, Jan 28, 2011 at 3:50 PM, James Turnbull <[email protected]>wrote:
> Is there is way using the node YAML terminus to pull out all of the
> tags? I can get facts through:
>
> Puppet::Node::Facts.search("*")
>
> If I do Puppet::Node.search is there a method available that returns
> tags - I can't find one?
>
>
what tags would exist on the node? Tags exist in the catalog:
try:
require 'puppet'
Puppet::Resource::Catalog.find('foo').tags
It is a little more complicated if you want to feed it facts or other node
attributes.
Regards
>
> James Turnbull
>
> --
> James Turnbull
> Puppet Labs
> 1-503-734-8571
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<puppet-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-dev?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" 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-dev?hl=en.