Re: [Puppet Users] Help me with a local Linux account management module

2013-05-08 Thread David Reagan
So, I just mocked up what I'm thinking of doing. How do I deal with loops? From what I can Puppet doesn't let you loop through arrays. See https://gist.github.com/jerrac/5543893 for a very very very rough draft of what I'm imagining this could look like. How would you deal with multiple authoriz

Re: [Puppet Users] Help me with a local Linux account management module

2013-05-08 Thread David Reagan
>There's several ways to handle this. Generally the way it's done is via a >"custom function" that executes on the puppetmaster and injects the results of >that run into the catalog for the client. This way you can use a hash >generator. Something like >https://github.com/kwilczynski/puppet-

Re: [Puppet Users] Help me with a local Linux account management module

2013-04-26 Thread Ashley Penney
On Fri, Apr 26, 2013 at 4:08 PM, David Reagan wrote: > I'm pretty much brand new to Puppet. I've read the tutorials on puppet > labs, and most of Pro Puppet. But there's still a lot I don't get. So I > figured I'd learn by doing. > > My current goal is to write a user account wrapper. It would on

[Puppet Users] Help me with a local Linux account management module

2013-04-26 Thread David Reagan
I'm pretty much brand new to Puppet. I've read the tutorials on puppet labs, and most of Pro Puppet. But there's still a lot I don't get. So I figured I'd learn by doing. My current goal is to write a user account wrapper. It would only be for local Linux accounts only, only on Ubuntu for now.