Re: [Puppet Users] Help with Multiple Resource Declarations

2019-05-06 Thread jcbollinger
On Saturday, May 4, 2019 at 5:29:53 PM UTC-5, Daniel Kinon wrote: > > Hey Stephen and all, > You are correct in your assumptions, and this definitely solved my > problem. I tried going down this path before but only met failure, looks > like my declaration syntax might have been wrong and

Re: [Puppet Users] Help with Multiple Resource Declarations

2019-05-06 Thread jcbollinger
On Friday, May 3, 2019 at 12:14:35 PM UTC-5, Stephen Marlow wrote: > > Hey Dan, > > The error you're getting is just saying that you've declared the > Base::Systemusers class twice and a class can only be declared once. > No, not exactly. Puppet's diagnostic is deceiving here: classes may be

Re: [Puppet Users] Help with Multiple Resource Declarations

2019-05-04 Thread Daniel Kinon
Hey Stephen and all, You are correct in your assumptions, and this definitely solved my problem. I tried going down this path before but only met failure, looks like my declaration syntax might have been wrong and I might have also had issues with the define syntax itself but I'm unsure at thi

Re: [Puppet Users] Help with Multiple Resource Declarations

2019-05-03 Thread Stephen Marlow
Hey Dan, The error you're getting is just saying that you've declared the Base::Systemusers class twice and a class can only be declared once. I suspect that your code looks something like this: $systemusers = lookup({ name => 'base::systemusers' }) $systemusers.each |$username, $userinfo

[Puppet Users] Help with Multiple Resource Declarations

2019-05-03 Thread Daniel Kinon
Hello Everyone, So I'm trying to create templates for system users. Here is my systemusers class: ~~~ class base::systemusers ( $username = $title, $home = "/var/lib/$username", ) { $systemusers = lookup({ name => 'base::systemusers' }) user { $username: ensure => present