0

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

Omnipresent
  • 227
  • 2
  • 7
  • 13
  • 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

1 Answers1

5

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

Sirex
  • 5,499
  • 2
  • 33
  • 54
  • 1
    +1 also I'd like to mention ansible (http://ansible.cc/) and chef (http://www.opscode.com/chef/) – Oneiroi Apr 26 '13 at 08:04