Re: [Puppet Users] useradd Duplicate declaration: Group

2013-08-06 Thread Andreas Dvorak
Hi Sergey, thank you but that did not help. I got the error message: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Group[addgroup_badm] is already declared in file /etc/puppet/git/modules/useradd/manifests/init.pp at line 12; cannot redeclare

Re: [Puppet Users] useradd Duplicate declaration: Group

2013-08-06 Thread Sergey Arlashin
Hello, try group { "addgroup_$group": name => $group, git => $gid } -- Best regards, Sergey Arlashin On Aug 6, 2013, at 10:30 AM, Andreas Dvorak wrote: > Hello, > > I have written a module to add user and it does work with one user. But if I > use two user puppet tells me: >

[Puppet Users] useradd Duplicate declaration: Group

2013-08-05 Thread Andreas Dvorak
Hello, I have written a module to add user and it does work with one user. But if I use two user puppet tells me: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Group[badm] is already declared in file /etc/puppet/git/modules/useradd/manifests/