[Puppet Users] Re: parsejson truncating output (i think)

2015-05-07 Thread Allen Myers
On Thursday, May 7, 2015 at 11:45:30 AM UTC-7, Allen Myers wrote: > > and one more piece of info: The puppet server is configured using > Passenger+apache. When I run > > puppet agent --test > > > on a client system, parsejson fails by truncating the hash output. > >

[Puppet Users] Re: parsejson truncating output (i think)

2015-05-07 Thread Allen Myers
h contains $myusers = parsejson (generate ('/bin/sh', '-c', '/var/lib/puppet/lib/create-user-hash.sh')) notice ($myusers) it works perfectly. - Allen On Wednesday, May 6, 2015 at 12:47:10 PM UTC-7, Allen Myers wrote: > > Hi, > > I've got t

[Puppet Users] Re: parsejson truncating output (i think)

2015-05-07 Thread Allen Myers
PM UTC-7, Allen Myers wrote: > > Hi, > > I've got the following statements in my manifest: > > $myusers_json = generate ('/bin/sh', '-c', '/path/to/my/script.sh') > notice ($myusers_json) > $myusers = parsejson ($myusers_json) > notice ($

[Puppet Users] parsejson truncating output (i think)

2015-05-06 Thread Allen Myers
Hi, I've got the following statements in my manifest: $myusers_json = generate ('/bin/sh', '-c', '/path/to/my/script.sh') notice ($myusers_json) $myusers = parsejson ($myusers_json) notice ($myusers) My script generates a list of users in JSON and I've verified that the output format from 'not

Re: [Puppet Users] Re: trying to create a hash using the generate function

2015-05-06 Thread Allen Myers
them work with puppet. > > Mike > > Sent with AquaMail for Android > http://www.aqua-mail.com > > On May 5, 2015 5:25:08 PM Allen Myers wrote: > >> definitely helps! that's the road I was just researching, but it helps to >> verify that I'm on the righ

[Puppet Users] Re: trying to create a hash using the generate function

2015-05-05 Thread Allen Myers
definitely helps! that's the road I was just researching, but it helps to verify that I'm on the right track. :) Thanks! - Allen On Tuesday, May 5, 2015 at 5:06:15 PM UTC-7, Allen Myers wrote: > > Hi, > > I have shell script that generates a hash of user accounts that

[Puppet Users] trying to create a hash using the generate function

2015-05-05 Thread Allen Myers
Hi, I have shell script that generates a hash of user accounts that need to be created/maintained by puppet. In my manifest I'm calling it using the generate() function: $myusers = generate ('/bin/sh', '-c', '/path/to/my/script.sh') The output of the script looks like: { 'user