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
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
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
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:
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:
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