The instance folder contains scripts which provide the functionality
to setup separate tomcat instances with only one tomcat deployment.

In the instance/bin:
 - tomcat-create-instance.sh script will create the minimal folder
   structure for the new instance. Additional changes can be made to
   the bin/init.d script.

   Example:
./tomcat-instance-create.sh\
 --instance-location instance_location\
 --instance-name instance_name\
 --instance-user instance_user\
 --provides 'instance-provides'\
 --should-start 'haproxy horizon-workspace hzn-dots rabbitmq-server vaos vmware-cm vmware-rhttpproxy vmware-stsd vmware-vpxd vpostgres'\
 --should-stop  'haproxy horizon-workspace hzn-dots rabbitmq-server vaos vmware-cm vmware-rhttpproxy vmware-stsd vmware-vpxd vpostgres'\
 --short-descr 'Instance server name'\
 --description 'Instance server name'\
 --chkconfig '345 29 02'
   After the command is executed, all other required files for running
   Tomcat instance must be added/mounted to the instance folder.
   All files might be copied/modified from the Tomcat installation
   (/usr/share/tomcat).

 - tomcat-instance-control.sh script is used internally to control the
   instance running state.


In the instance/template:
 This folder contains the executable template scripts for instance control.