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.
>
>
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
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 ($
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
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
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
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