[Puppet Users] Re: escape sequence within generate function

2013-08-05 Thread jcbollinger
On Friday, August 2, 2013 12:07:24 PM UTC-5, Jacob McCoy Wade wrote: On Friday, August 2, 2013 6:43:01 AM UTC-7, jcbollinger wrote: On Thursday, August 1, 2013 2:37:03 PM UTC-5, Jacob McCoy Wade wrote: The closest I've come is to use: $random_1 = generate('/bin/sh', '-c', '\/bin/cat

[Puppet Users] Re: escape sequence within generate function

2013-08-02 Thread jcbollinger
On Thursday, August 1, 2013 2:37:03 PM UTC-5, Jacob McCoy Wade wrote: I'm looking for some help in getting the proper escape sequence within the generate function. Ultimately what I'm trying to do is generate some random strings, store them as variables, and use those variables to

[Puppet Users] Re: escape sequence within generate function

2013-08-02 Thread Jacob McCoy Wade
On Friday, August 2, 2013 6:43:01 AM UTC-7, jcbollinger wrote: On Thursday, August 1, 2013 2:37:03 PM UTC-5, Jacob McCoy Wade wrote: The closest I've come is to use: $random_1 = generate('/bin/sh', '-c', '\/bin/cat /dev/urandom | /usr /bin/tr -dc \'a-z0-9\' | /usr/bin/fold -w 8 |