Well I haven't got on top of debugging the createhomdir but I just
wanted to let you know how we got the command to work. this is the
exec as follows
exec {'username':
command =>"cp -R /System/Library/templateuser/English.lproj/ /
Users/username/",
path =>"/bin/",
#everything else that we where using has been commented out.
}
The path command was key and one of my managers was just screwing with
it and got it to work. The manifests are different a little bit
because i went in and changed the "User Template" to "templateuser"
because i thought puppet was having a hard time on the files with
spaces. Just thought you would want to know. Again thank you so much
you are awesome Nigel, if there is anything I could do for you just
let me know:)
On Jun 13, 3:53 pm, Nigel Kersten <[email protected]> wrote:
> On Mon, Jun 13, 2011 at 12:48 PM, vella1tj <[email protected]> wrote:
> > so the copying way of the user template is prolly not the best way?
>
> That's basically one of the underlying things createhomedir does, but you're
> not going to actually be setting up directories with the correct
> permissions/ACLs, which could be a problem.
>
> Especially in later versions of OS X, createhomedir problems have often been
> a symptom of another directory service related issue in my experience, so
> I'd definitely do some debugging first.
>
>
>
>
>
>
>
>
>
>
>
> > On Jun 13, 3:24 pm, Nigel Kersten <[email protected]> wrote:
> > > On Mon, Jun 13, 2011 at 11:05 AM, vella1tj <[email protected]> wrote:
> > > > Unfortunately it is still not creating the Home folder but it is at
> > > > least creating the User and assigning it the proper values!!:D
>
> > > > I'm going to try doing a mdir to create the home folder. Let me know
> > > > what you think about that, here is what I have right now.
>
> > > > user {'user':
> > > > uid => 501,
> > > > gid => 'staff',
> > > > #comment => "some random comment",
> > > > ensure => present,
> > > > home => '/Users/user',
> > > > shell => '/bin/bash',
> > > > # provider => user_role_add,
> > > > password => 'Hash,
> > > > }
>
> > > > exec {"/usr/sbin/createhomedir -c -l -u user":
> > > > subscribe => User[user],
> > > > refreshonly => true,
> > > > }
>
> > > > The weird thing is even manually using the createdir command is not
> > > > working. I thought maybe their was something wrong with the OS
> > > > installation because its on a macbook air so I tried it on my actual
> > > > Imac work computer. I deleted the local admin account then ran the
> > > > command it created the user but not the home folder still. I forget to
> > > > set myself as admin so I had to have my manager su user then create
> > > > the folder and he was able to. So it's def the script that I wrote
> > > > that is not working. Thanks for your time again Nigel I do appreciate
> > > > it.
>
> > > Sometimes createhomedir is just buggy. :(
>
> > > If you do "man DirectoryService" you'll see the instructions for sending
> > > USR1 signals to the DS process for debugging and there might be something
> > > that leaps out when you interactively run createhomedir for the user.
>
> > --
> > 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.
>
> --
> Nigel Kersten
> Product, Puppet Labs
> @nigelkersten
--
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.