-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Florian wrote:
> Anyone know of how I can do in puppet the equivalent of this from the
> land of shell scripting?
> 
> foo=$(cat /tmp/bar)
> 
> or if you prefer
> 
> foo=`cat /tmp/bar`

On the master you can use the generate function to populate a variable
value.

http://reductivelabs.com/trac/puppet/wiki/FunctionReference#generate

Otherwise you should use a fact.

Regards

James Turnbull

- --
Author of:
* Pro Linux Systems Administration
(http://www.amazon.com/gp/product/1430219122/)
* Pulling Strings with Puppet
(http://www.amazon.com/gp/product/1590599780/)
* Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)
* Hardening Linux
(http://www.amazon.com/gp/product/1590594444/)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ+4W09hTGvAxC30ARAv05AJ9jQZksz+/bX5NBsGkh18+jom8ukQCdF0cr
GAdPLI/EG9JUgndFnbnZI/I=
=zcAM
-----END PGP SIGNATURE-----

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