Users with different passwords on each host

13 views
Skip to first unread message

Jamie

unread,
Jan 17, 2012, 2:44:01 PM1/17/12
to puppet...@googlegroups.com
Say I have 50 user accounts that must exist on 3 hosts, each with different passwords (3 hosts, 50 users, 150 passwords).  Is it possible to do this without defining each user 3 times?

Thank you

Christopher Wood

unread,
Jan 17, 2012, 2:49:59 PM1/17/12
to puppet...@googlegroups.com
Maybe something like this?

----------------------------------------
class users {

user { 'cwood':
password => $fqdn ? {
'host1' => 'password1',
'host2' => 'password2',
},
}

}

include users
----------------------------------------

If you use a scripted generator to pop out the manifest from predefined lists of users and hosts that will be easier on you.

But now I'm really, really curious about why you're configuring the opposite of centralized authentication. What criteria are you attempting to fit into?

> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> [1]https://groups.google.com/d/msg/puppet-users/-/gyB1oArF5kAJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
> References
>
> Visible links
> 1. https://groups.google.com/d/msg/puppet-users/-/gyB1oArF5kAJ

Jamie

unread,
Jan 17, 2012, 2:58:16 PM1/17/12
to Puppet Users
Ahh! That might work for me, thanks! You're wondering why I don't
use LDAP or other centralized authentication? I'm not familiar with
it, I don't know whether it has the ability to do what I want, and I'd
have to convice my CTO, who doesn't experience my issues directly that
it's better than me having to maintain a bunch of code.

:\ I'll let you know if it works, thanks again.



On Jan 17, 11:49 am, Christopher Wood <christopher_w...@pobox.com>
wrote:

Jamie

unread,
Jan 17, 2012, 3:34:04 PM1/17/12
to Puppet Users
Worked great, just what I needed, you made my day! :)



On Jan 17, 11:49 am, Christopher Wood <christopher_w...@pobox.com>
wrote:
Reply all
Reply to author
Forward
0 new messages