How to write a script to install multiple things by just executing it

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

Answer

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

Attribution
Source : Link , Question Author : Omnipresent , Answer Author : Sirex

Leave a Comment