Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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  
+1 also I'd like to mention ansible (ansible.cc) and chef (opscode.com/chef) –  Oneiroi Apr 26 '13 at 8:04
add comment

Your Answer

 
discard

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.