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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/gyB1oArF5kAJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Christopher Wood
2012-Jan-17 19:49 UTC
Re: [Puppet Users] Users with different passwords on each host
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? On Tue, Jan 17, 2012 at 11:44:01AM -0800, Jamie wrote:> 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 > > -- > 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-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@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-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jamie
2012-Jan-17 19:58 UTC
[Puppet Users] Re: Users with different passwords on each host
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:> 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? > > > > > > > > On Tue, Jan 17, 2012 at 11:44:01AM -0800, Jamie wrote: > > 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 > > > -- > > 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-users@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscribe@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-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jamie
2012-Jan-17 20:34 UTC
[Puppet Users] Re: Users with different passwords on each host
Worked great, just what I needed, you made my day! :) On Jan 17, 11:49 am, Christopher Wood <christopher_w...@pobox.com> wrote:> 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? > > > > > > > > On Tue, Jan 17, 2012 at 11:44:01AM -0800, Jamie wrote: > > 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 > > > -- > > 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-users@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscribe@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-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.