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