Ask Your Question

another user home creation problem

asked 2014-03-11 10:06:20 -0600

mbaroukh gravatar image


I'm trying to use puppet but I'm facing some problems that seems so obvious that I suppose I'm mis-using it.

For now, I'm just trying to create a user. I had a problem in my module because the parent directory of the home dir I'm asking for wasn't exists. But it was hard to diagnose because of this fact :

On ubuntu :

# getent passwd|grep john
# /usr/sbin/useradd -d /does/not/exists -m johndoe
useradd : impossible de créer le répertoire /does/not/exists
# getent passwd|grep john

=> so user is not create if ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2014-03-11 12:43:49 -0600

Stefan gravatar image

You are right that the managehome parameter is just a way to instruct puppet on how to create a user if necessary. Puppet will not actually check if the directory is present, or whether the skel directory has been copied correctly. And while the documentation is clear about that point, I agree that the term manage is misleading here. Personally I don't use managehome at all and make sure the homedirectory exists with a file resource.

Regarding the resource ordering: I disagree here and can only encourage you to use explicit requirements because they do not only take care ... (more)

edit flag offensive delete link more


Thanks a lot for this reply. On ordering, I agree it is something important. But I think that for most usages, it should be sequential and only advanced users should ...(more)

mbaroukh gravatar imagembaroukh ( 2014-03-11 13:55:51 -0600 )edit

puppet does not do parallel processing, it will always just process one resource at a time. Just the ordering is somewhat random for non-related resources. Another hint: Instead of using ...(more)

Stefan gravatar imageStefan ( 2014-03-11 15:17:03 -0600 )edit

oups ... I was really sure there was multiple actions at the same time. thank you. I saw the "install_options" but I could not use use it. But I don't ...(more)

mbaroukh gravatar imagembaroukh ( 2014-03-17 08:15:06 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-03-11 10:06:20 -0600

Seen: 75 times

Last updated: Mar 11 '14