Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For a particular service, users are added/removed via web to a mySQL table. I need to replicate those users on several ubuntu servers (as regular shell users), preferably through Puppet. Currently I would use a shell script to read the table and create a users.pp manifest (but it gets tricky to deal with removed users). Is there a more efficient way?

share|improve this question
You probably moved on a long time ago, but did you ever find anything? Have you considered just switching your authentication over to ldap or some other centralized systems. – Zoredache Aug 16 '12 at 5:45

Yes, agreed that you should be using LDAP instead of this. However, if you really want to use MySQL data to drive local user creation (which is not a great idea...)

Use the MySQL Hiera backend:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.