Re: CFEngine Help: Re: Problem accessing list variables in hash

2012-06-25 Thread Mike Brodbelt
Thanks for the help - I've ended up taking bits from both solutions. I'm now calling the method bundle once per user account to add, which allows me to pass in the slist of keys to add. Pulling the keys into variables with readfile has made life easier in controlling the final output. Thanks f

CFEngine Help: Re: Problem accessing list variables in hash

2012-06-22 Thread no-reply
Forum: CFEngine Help Subject: Re: Problem accessing list variables in hash Author: nickanderson Link to topic: https://cfengine.com/forum/read.php?3,26268,26273#msg-26273 Of course I come back and look at it in the morning and see some things I don't like. Anyway if you didnt want to m

CFEngine Help: Re: Problem accessing list variables in hash

2012-06-21 Thread no-reply
Forum: CFEngine Help Subject: Re: Problem accessing list variables in hash Author: nickanderson Link to topic: https://cfengine.com/forum/read.php?3,26268,26272#msg-26272 Hi Mike, I think I would do it in a different way. You seem to have a user creation bundle already. Perhaps you could

CFEngine Help: Re: Problem accessing list variables in hash

2012-06-21 Thread no-reply
Forum: CFEngine Help Subject: Re: Problem accessing list variables in hash Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,26268,26270#msg-26270 Hi Mike, Due to the way variable convergence works in CFEngine, looping over multi-dimensional arrays doesn't work as one

Problem accessing list variables in hash

2012-06-21 Thread Mike Brodbelt
I want to have a bundle that creates system user accounts, and adds a list of authorised ssh keys to those accounts. So, what I have is:- bundle agent do_config { vars: "users[www-user][gecos]" string => "Web server user"; "users[www-user][home]"string => "/var/lib/www"; "u