Re: [Puppet Users] Puppet Resources overridden using Hiera

2014-05-22 Thread Danny Roberts
That's been a great help. I have been able to use the config you presented to create user's defined in Hiera. I am just trying to expand upon that. Currently I do a: --- users: jane.doe The value 'jane.doe' is obviously passed to the $title variable. Is it possible to pass a second

Re: [Puppet Users] Puppet Resources overridden using Hiera

2014-05-22 Thread jcbollinger
On Thursday, May 22, 2014 2:44:06 AM UTC-5, Danny Roberts wrote: That's been a great help. I have been able to use the config you presented to create user's defined in Hiera. I am just trying to expand upon that. Currently I do a: --- users: jane.doe The value 'jane.doe' is

Re: [Puppet Users] Puppet Resources overridden using Hiera

2014-05-21 Thread Doug Forster
Try getting your user list from hiera. Then it will easily be overridden on a server basis. class company::sshkeys ( users, ) { users.each |$my_user| { user { $my_user: ensure = present, gid = company, home= /home/${my_user}, managehome = true, shell

Re: [Puppet Users] Puppet Resources overridden using Hiera

2014-05-21 Thread Danny Roberts
For some reason my Puppet install doesn't like that: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'users'; expected ')' at /etc/puppet/modules/company/manifests/sshkeys.pp:1 on node puppetmaster Warning: Not using cache on failed catalog Error:

Re: [Puppet Users] Puppet Resources overridden using Hiera

2014-05-21 Thread Doug Forster
My apology the .each functionality is only available if parser=future. http://docs.puppetlabs.com/puppet/latest/reference/experiments_future.html On Wed, May 21, 2014 at 12:58 PM, Danny Roberts dannyroberts.perso...@googlemail.com wrote: For some reason my Puppet install doesn't like that:

Re: [Puppet Users] Puppet Resources overridden using Hiera

2014-05-21 Thread jcbollinger
On Wednesday, May 21, 2014 1:58:22 PM UTC-5, Danny Roberts wrote: For some reason my Puppet install doesn't like that: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'users'; expected ')' at /etc/puppet/modules/company/manifests/sshkeys.pp:1 on