Ask Your Question

How to add users in a existing /etc/passwd file of a newly added node

asked 2013-10-01 13:19:08 -0600

ali_syedhamid gravatar image


I'm new to puppet. My apologies if this is a dumb question. We are considering using puppet for managing few linux servers and I would like to know is it possible to migrate the existing users of a server which would be added to the puppet as a node.

Thanks in advance Syed

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2013-10-01 15:03:00 -0600

Stefan gravatar image

In puppet your are not managing the /etc/passwd file directly, you are managing user resources (and to accomplish the desired state, puppet may modify your /etc/passwd file)

If you want to know how the user resource work, have a look at the type reference

If you want to see the user resources of a running server, so you can easily copy&past the output into a new manifest, just run puppet resource user on the desired machine.

edit flag offensive delete link more


Hi Stefan, Thank you very much for your feedback. I'm being asked to get trained on Puppet and use it to manage about 400 existing servers. My intention was ...(more)

ali_syedhamid gravatar imageali_syedhamid ( 2013-10-02 02:13:39 -0600 )edit

Have you checked the official documentation especially the learning puppet section ?

Stefan gravatar imageStefan ( 2013-10-02 13:55:32 -0600 )edit

answered 2013-10-04 13:31:48 -0600

mandm_zoom gravatar image

try using this account management module

i have been creating users and maintaining them using this module

edit flag offensive delete link more

answered 2013-10-01 14:00:57 -0600

ali_syedhamid gravatar image
edit flag offensive delete link more

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: 2013-10-01 13:19:08 -0600

Seen: 3,003 times

Last updated: Oct 04 '13