On Feb 21, 3:00 am, sateesh <bbalasate...@gmail.com> wrote:
> I need to capture the output of an exec command in puppet manifest
> variable. How can I do this.


As Paul observed, what you ask is inconsistent with Puppet's manner of
operation.  How you should proceed instead depends on what you are
trying to accomplish.

A custom fact may provide what you are looking for: you can easily add
a custom fact to your system that will run a command on the node
*before* each catalog request, and provide the output as a fact
(accessible as a top-level Puppet variable).  The documentation for
custom facts (http://docs.puppetlabs.com/guides/custom_facts.html)
provides an example of exactly that.


John

-- 
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