the exec has been changed to this.
exec {"cp -R English.lproj/* /Users/sysop":
path =>"/System/Library/User Template/",
#require =>User[sysop],
#subscribe =>User[sysop],
#refreshonly => true,
}
Have also tried using
exec {"cp -R English.lproj/* /Users/sysop":
path =>"/System/Library/User\ Template/",
#require =>User[sysop],
#subscribe =>User[sysop],
#refreshonly => true,
}
Because the createdir was failing my manager came up with the idea of
copying the user template from "/System/Library/User Template/
English.lproj" and rename to username in the /Users folder.
after I receive the error:
//User[sysop]/ensure: created
err: //Exec[cp -R English.lproj/* /Users/sysop]/returns: change from
notrun to 0 failed:
On Jun 13, 2:05 pm, 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.
>
> If there is any information that I ommited that is needed just tell me
> and I'll do my best to give you whatever you need.
>
> On Jun 10, 1:11 pm, Nigel Kersten <[email protected]> wrote:
>
>
>
>
>
>
>
> > On Fri, Jun 10, 2011 at 8:34 AM, vella1tj <[email protected]> wrote:
> > > Thanks going to try that right now sorry that the error wasn't more
> > > helpful.
>
> > You're completely misunderstanding me :) The error not being helpful is
> > Puppet's fault, not yours at all :)
--
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.