On May 4, 8:55 am, Philip Brown <[email protected]> wrote:
> On Fri, May 4, 2012 at 1:18 AM, Luke Bigum <[email protected]> wrote:
> > Hi Philip,
>
> > What's wrong with letting Puppet decide on the provider automatically?
>
> > user { "luke": ensure => present, home => '/home/luke', password =>
> > 'zzzzzzzzzzzzzzz' }
>
> We use NIS compat mode.
> we have 32,000 users through NIS.
> Puppet tries to go through all of them.
> It's not usable that way.
> Besides which, it would give us false positives.
> Some users we care about are in NIS, but we specifically want them to
> have local definitions as well.
I wrote a custom "nisuser" User provider to handle exactly that
situation. I add "provider => 'nisuser'" to User declarations that I
want to leverage it. For example:
user { 'alice':
ensure => present,
provider => 'nisuser'
}
ensures the /etc/passwd contains the line
+alice::::::
Those properties that make sense to override locally are also
supported. Unfortunately, I'm not at liberty to share, but I can try
to offer advice if you choose to go that way.
John
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.