Ask Your Question
0

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

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

ali_syedhamid gravatar image

Hi,

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
1

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

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

Comments

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 -0500 )edit
1

Have you checked the official documentation http://docs.puppetlabs.com especially the learning puppet section http://docs.puppetlabs.com/learning ?

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

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

mandm_zoom gravatar image

try using this account management module http://blog.scottlowe.org/2012/11/25/using-puppet-for-account-management/

i have been creating users and maintaining them using this module

edit flag offensive delete link more
0

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

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

Stats

Asked: 2013-10-01 13:19:08 -0500

Seen: 2,637 times

Last updated: Oct 04 '13