Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

First of, I'm fairly new to this whole linux thing... So be gentle.

The setup:
I have a couple of Ubuntu servers... A pair of DNS servers running Bind, and a pair of servers running Nginx and HAProxy to load-balance requests to some back-end servers.

Now, the Bind servers pretty much keep each other up to date by doing zone transfers, although there are some settings in bind that I would like to share between them. However, The load-balancer servers are completely independent which is really bad. This is bad because I then have to change the configurations on both servers independently when I want to make config changes. This of course opens the servers up for mistakes where I accidentally configure the two servers differently, which will inevitably turn into "hard to debug" errors and bugs at some point.

The question
So my question is... How do I sync config changes between the servers, as well as automatically restart the services when their configuration changes?

share|improve this question

You might want to look at either Puppet or CFengine. Both offer ways to keep configurations in sync, and execute commands after syncing.

They operate under different philosophies though, I cannot say which would work best for you, you would have to read up and test which best suits your environment and workstyle.

share|improve this answer
Thank you... :) – JohannesH Aug 3 '11 at 9:04
Based on my initial research, I think I'll use CFEngine. So I accepted your answer. – JohannesH Aug 3 '11 at 10:38

You can, in theory, just rsync (bits of) the configuration back and forth as required, but that gets real messy, real fast. Instead, you should use a real configuration management system such as Puppet or Chef to maintain the configuration for you (and restart things when the configuration changes).

share|improve this answer
Thank you... :) – JohannesH Aug 3 '11 at 9:04

We are releasing our hosted configuration management service soon which is another way to solve your problem as it centralizes the configuration in one place and eliminates the need for synchornization. If you want you can signup for a beta here

share|improve this answer
Thanks for the info. I'll check it out. – JohannesH Jan 4 '12 at 13:45

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.