Jack Johnson
2008-Jul-10  17:41 UTC
[Puppet Users] [Newbie] User''s group membership on OS X
Hi,
Getting my feet wet with Puppet and loving it.  I''m trying to add a
local
admin user on OS X and the account creates fine but it doesn''t add the
user
to the admin group  I can see it log the attempt, but the result is empty.
I suppose I could exec something to correct the problem, but I''m
wondering
if I''m overlooking something or if I should submit a bug report.
I''ve tried using 10.4.10 and 10.5.4 with no luck on either.  Using the
default provider (NetInfo) it will add the user to the group but it
comma-delimits the users, which hoses the group.
Thanks,
-Jack
P.S.
I realize the password is plaintext and gets logged.  This is just me
learning the ropes.
------
# init.pp
class users::tech {
    case $operatingsystem {
        Darwin: {
            group { "test":
                ensure => present,
                allowdupe => false,
                provider => directoryservice,
                gid => "599",
            }
            user { "test":
                ensure => present,
                allowdupe => false,
                provider => directoryservice,
                comment => "Test Admin",
                password => "test",
                uid => "599",
                gid => "599",
                groups => [ "admin" ],
                membership => minimum,
                shell => "/bin/bash",
                home => "/Users/test",
                require => Group[test],
            }
        }
    }
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Jack Johnson
2008-Jul-11  23:36 UTC
[Puppet Users] Re: [Newbie] User''s group membership on OS X
On Thu, Jul 10, 2008 at 9:41 AM, Jack Johnson <knapjack@gmail.com> wrote:> Getting my feet wet with Puppet and loving it. I''m trying to add a local > admin user on OS X and the account creates fine but it doesn''t add the user > to the admin group I can see it log the attempt, but the result is empty. > I suppose I could exec something to correct the problem, but I''m wondering > if I''m overlooking something or if I should submit a bug report. >Found the issue<http://reductivelabs.com/redmine/repositories/revision/1/5a5d2411265443a9331179c9410271e51b9d98f7> : implement groups and groups= instances methods for Puppet::Type::User::ProviderDirectoryservice Doing the group membership with an exec in the interim. Hi Jeff! :) -Jack --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---