I am trying create a generic shell script for deployment which will read from a common properties file for all env. Based on the environment tag it will fetch the values and use them to deploy using bash scripts.
Properties file looks like:
dev.servername=devnode1,devnode2
dev.rootdir=/server/someapps
test.servername=testnode1,testnode2
test.rootdir=/server/someapps
The idea is to fetch values for dev only if the argument for environment is dev and so on. Also to store the server names in an array to run commands in loop for all the servers.
Appreciate any input.