This recipe provide a LWRP to deploy tomcat instance on a server. As a lot a parameters are manageable throught this LWRP, multiple instance of tomcat could be deployed on the same server.
Here is the minimal information that need to be provided to the provider :
tomcat_multi "instanceName" do
tomcat_version "7.0.62"
tomcat_url "http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.61/bin/apache-tomcat-7.0.61.tar.gz"
jdk_version "7u79"
jdk_url "https://operations.ebusiness.schneider-electric.com/binaryrepo/jdks/jdk-7u79-linux-x64.tar.gz"
port 9090
shutdown_port 9006
ajp_port 9009
ajpredir_port 9443
end
Key | Type | Description | Mandatory/Fac. | Default |
---|---|---|---|---|
tomcat_version | String | version of tomcat to be installed | Mandatory | N/A |
tomcat_url | String | URL for download the tomcat package | Mandatory | N/A |
jdk_version | String | version of JDK to be installed | Mandatory | N/A |
jdk_url | String | URL for download the JDK package | Mandatory | N/A |
port | Integer | port on which tomcat instance will listen | Mandatory | N/A |
shutdown_port | Integer | shutdow port for the tomcat instance | Mandatory | true |
ajp_port | Integer | AJP port for the tomcat instance | Mandatory | N/A |
ajpredir_port | Integer | AJP redirection port for the tomcat instance | Mandatory | N/A |
tomcat_installpath | String | path for tomcat installation. A link tomcat_ will be created under this path | Fac | /opt/tomcat |
jdk_installpath | String | path for jdk installation. | Fac | /opt/jdk |
ldap_users | Boolean | define is users should be created or fetch from ldap. | Fac | false(user are created) |
tomcat_user | String | user for the tomcat instance | Fac | same as the instance name |
tomcat_group | String | group for the tomcat instance | Fac | same as the instance name |
cookbook_serverxml | String | cookbook where to find the serverxml template | Facn | tomcat-multi |
source_serverxml | String | filename to use as server.conf template | Fac | server.conf.erb |
max_threads | Integer | max threads on tomcat threadpool | Fac | 100 |
min_spare_threads | Integer | min spare threads on tomcat threadpool | Fac | 10 |
ssl_enabled | Boolean | enable SSL connector. must also set ssl_port | Fac | false |
ssl_port | Integer | the port to listen on for SSL connections | Fac | '' |
keystore_file | String | absolute path to the SSL Keystore file | Fac | '' |
keystore_pass | String | SSL Keystore file password | Fac | '' |
keystore_type | String | SSL Keystore file type (e.g. 'JKS') | Fac | '' |
lockout_realm_enabled | Boolean | Enable default LockoutRealm and configures a realm inside it (see below). | Fac | true |
lockout_realm_classname | String | Realm inside of LockoutRealm className | Fac | org.apache.catalina.realm.UserDatabaseRealm |
lockout_realm_resourcename | String | Realm inside of LockoutRealm resourceName (if it has one) | Fac | UserDatabase |
lockout_realm_datasourcename | String | Realm inside of LockoutRealm datasourceName (if it has one) | whether to include bacon | '' |
lockout_realm_usertable | String | Realm inside of LockoutRealm userTable (if it has one) | whether to include bacon | '' |
lockout_realm_usernamecol | String | Realm inside of LockoutRealm userNameCol (if it has one) | whether to include bacon | '' |
lockout_realm_usercredcol | String | Realm inside of LockoutRealm userCredCol (if it has one) | whether to include bacon | '' |
lockout_realm_userroletable | String | Realm inside of LockoutRealm userRoleTable (if it has one) | whether to include bacon | '' |
lockout_realm_roleNameCol | String | Realm inside of LockoutRealm roleNameCol (if it has one) | whether to include bacon | '' |
lockout_realm_localdatasource | String | Realm inside of LockoutRealm localDatasource (if it has one) | whether to include bacon | '' |
lockout_realm_digest | String | Realm inside of LockoutRealm digest (if it has one) | whether to include bacon | '' |
cluster_class | String | Cluster class (must be set for Farm Deployment to work. See below) | whether to include bacon | '' |
farm_deploy_enabled | Boolean | Enables Farm Deployment (must set properties below as well) | whether to include bacon | false |
farm_deploy_classname | String | Deployer className | whether to include bacon | '' |
farm_deploy_tempdir | String | Deployer tempDir | whether to include bacon | '' |
farm_deploy_deploydir | String | Deployer deployDir | whether to include bacon | '' |
farm_deploy_watchdir | String | Deployer watchDir | whether to include bacon | '' |
farm_deploy_watchenabled | String | Deployer watchEnabled | whether to include bacon | '' |
SSO_enabled | Boolean | Enable default SingleSignOn Valve | whether to include bacon | false |
cookbook_init | String | cookbook to fetch tomcat init template | whether to include bacon | tomcat-multi |
source_init | String | filename to use as init script template | whether to include bacon | tomcat.init.erb |
cookbook_env | String | cookbook to fetch tomcat setenv template | whether to include bacon | tomcat-multi |
source_env | String | filename to use as setenv.sh template | whether to include bacon | setenv.sh.erb |
java_opts | String | options to java startup. | whether to include bacon | -d64 -server -Djava.awt.headless=true |
catalina_opts | String | CATALINA_OPTS configuration | whether to include bacon | '' |
Add Logrotate on logs files ?