On Jun 29, 2010, at 8:43 AM, Trevor Vaughan wrote:
All,
I'm trying to determine if it is possible to programmatically add an
object to the active catalog from a function.
I haven't quite wrapped my head around the scope of the function
relationship with the main Puppet scope.
A pointer on how the existing global catalog can be referred to within
a function would be a helpful start.
Yeah, it's pretty easy (although the catalog isn't global, it's per-
client).
Look at my hash2resources branch:
http://github.com/lak/puppet/tree/features/master/hash2resources
It should have sufficient answers, but feel free to follow up if it
doesn't.
--
Work is not always required. There is such a thing as sacred idleness.
-- George MacDonald
---------------------------------------------------------------------
Luke Kanies -|- http://puppetlabs.com -|- +1(615)594-8199
--
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.