Thanks going to try that right now sorry that the error wasn't more helpful.
On Jun 10, 11:09 am, Nigel Kersten <ni...@puppetlabs.com> wrote: > On Fri, Jun 10, 2011 at 7:51 AM, vella1tj <vella...@gmail.com> wrote: > > user {'username': > > uid => 501, > > gid => 'staff', > > comment => 'comment', > > ensure => present, > > home => '/Users/sysop', > > shell => '/bin/bash', > > managehome => true, > > password => 'hash', > > } > > > I run the command puppet init.pp to apply it (mac osx 10.6) and I get > > "Parameter managehome failed: User provider directoryservice can not > > manage home directories at /private/ectic/puppet/init.pp:11 > > The directoryservice provider doesn't manage home directories, but it would > be reasonably easy to patch it to do so. Can you file a feature request for > us please? > > > > > I looked at line 11 which is actually where the "}" is so I feel that > > can' be wrong. I believe maybe they're could be something on my test > > mac that is blocking puppet from creating the home directory.... Any > > help would be appreciated and thanks in advance for any response! > > The error is clearly unhelpful. :( > > Take out the managehome directory part and I'd put in an exec like: > > exec { "/usr/sbin/createhomedir -c -l -u <username>": > subscribe => User[<username>], > refreshonly => true, > > } > > This is how the underlying directoryservice provider should do the home > directory creation rather than making, as it will make it from the user > template. > > The problem with this is that it will only create it when the user record is > created. An alternative might be: > > exec { "/usr/sbin/createhomedir -c -l -u demo": > unless => "/bin/test -d /Users/demo/Library", > > } > > so it will create it if the /Library folder is missing. > > There are a lot of caveats here about the interaction of FileVault while the > user is logged out. Hopefully you don't have to care about that. :) > > > > > > > > > > > Two of my co-workers attempted to help me, they changed a few settings > > to this: > > > user {'username': > > uid => 501, > > gid => 'staff', > > #comment => 'comment', > > ensure => present, > > # managehome => true, > > home => '/Users/username', > > shell => '/bin/bash', > > provider => dscl, > > password => 'hash', > > } > > > I would then get the error > > "could not find a default route. Using first non-loopback interface > > Time out seeking value for ipaddress" This is repeated multiple > > times. > > "warning: Could not retrieve fact ipadresss. > > Not believing that it was due to not pulling a ipaddress (besides > > 172) > > it was but it is still not creating the home folder even when > > managehome is not commented out. > > > -- > > 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+unsubscr...@googlegroups.com. > > 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.