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

2015-05-06 Thread Allen Myers
thanks for the clarification. It's fixed by creating JSON format data and using parsejson. Thanks! - Allen On Tue, May 5, 2015 at 11:45 PM, Michael Pawlak wrote: > Allen, > > The generate function simply returns the output of an external command, as > executed on the puppet master. > > Since

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

2015-05-06 Thread Michael Pawlak
Allen, The generate function simply returns the output of an external command, as executed on the puppet master. Since bash only started supporting associative arrays (hashes/dictionaries) in version 4 it is highly likely that your bash script is outputting a string and not a hash. The forma

[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 need to be > created/main

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

2015-05-05 Thread Charlie Sharpsteen
On Tuesday, May 5, 2015 at 5:06:15 PM UTC-7, Allen Myers wrote: > So, based on the error messages, it's obvious that the generate() function > is returning the string data type. Can I force it to return the hash data > type? > Or is there a way to convert a string to a hash? > The generate() f