I would like to install tomcat with a recipe
through chef
at some folder, like /company/tomcat6.0.45-port8081
. But sometimes I have many instances of tomcat, like /company/tomcat7.0.41-port8082
, /company/tomcat7.0.39-port8083
and go on, how can I do that ?
Any idea ?
I create a recipe in chef, which you just define the role for which server you put this role, and it will install many tomcat instances in different port, for you.
attributes
files/default/catalina.sh
files/default/tomcat-users.xml
recipes/default.rb
Then you should just create a role for the server:
roles/tomcat-server93.rb