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

I have a server (centOS) on which I would like to install the staple development tools. Java, Tomcat, and MySql.

What is a good way to write a script that can be ran on newly spawned server so that this isn't done manually on each new server.

Would a bash script work best for this purpose? I would want the script not just tied to centOS but be able to work across different flavors of linux

share|improve this question
You write a script to do something by writing a script that does those things (this is one of those Zen Koan kinda things), but like Sirex points out below Configuration Management tools are really the Right Way to do this these days. – voretaq7 Apr 26 '13 at 16:24
up vote 5 down vote accepted

You can do this with bash, but you likely want something more like puppet. (Try decentralised puppet and "puppet apply" runs).

share|improve this answer
+1 also I'd like to mention ansible ( and chef ( – Oneiroi Apr 26 '13 at 8:04

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.