cookbook 'esri-tomcat', '~> 0.5.0'
esri-tomcat
(17) Versions
0.5.0
-
Follow0
Installs/Configures esri-tomcat
cookbook 'esri-tomcat', '~> 0.5.0', :supermarket
knife supermarket install esri-tomcat
knife supermarket download esri-tomcat
layout: default
title: "esri-tomcat cookbook"
category: cookbooks
item: esri-tomcat
version: 0.5.0
latest: true
esri-tomcat cookbook
This cookbook installs and configures Apache Tomcat for use with ArcGIS Web Adaptor.
Supported Platforms
- Ubuntu Server 20.04 LTS
- Ubuntu Server 22.04 LTS
- Ubuntu Server 24.04 LTS
- Red Hat Enterprise Linux Server 8
- Red Hat Enterprise Linux Server 9
- SUSE Linux Enterprise Server 15
- Oracle Linux 8
- Oracle Linux 9
- Rocky Linux 8
- Rocky Linux 9
- AlmaLinux 9
Dependencies
The following cookbooks are required:
- tomcat
- openssl
Attributes
General
-
node['tomcat']['version']= Tomcat version to install. Default is10.1.59. -
node['tomcat']['instance_name']= Tomcat instance name. Default isarcgis. -
node['tomcat']['install_path']= Tomcat installation directory. Default is/opt/tomcat_INSTANCENAME_VERSION. -
node['tomcat']['tarball_base_uri']= The base URI to the apache mirror containing the tarballs. Default ishttps://archive.apache.org/dist/tomcat/. -
node['tomcat']['checksum_base_uri']= The base URI to the apache mirror containing the md5 or sha512 file. Default URI ishttps://archive.apache.org/dist/tomcat/. -
node['tomcat']['tarball_path']= Tomcat tarball archive path. Default is<Chef file cache path>/apache-tomcat-<tomcat version>.tar.gz. -
node['tomcat']['verify_checksum']= Verify checksum of downloaded Tomcat tarball. Default value istrue. -
node['tomcat']['forward_ports']= If set totrue, default recipe includes the 'firewalld' or 'iptables' recipe. Default value istrue. -
node['tomcat']['firewalld']['init_cmd']= The firewalld initialization command. The default command isfirewall-cmd --zone=public --permanent --add-port=0-65535/tcp. -
node['tomcat']['create_symlink']= Create symlink atnode['tomcat']['symlink_path']tonode['tomcat']['install_path']. Default istrue. -
node['tomcat']['symlink_path']= Full path to where the symlink will be created targetingnode['tomcat']['install_path']. Default path is/opt/tomcat_<instance name>. -
node['tomcat']['tomcat_user_shell']= Shell of the tomcat user. Default is/bin/false. -
node['tomcat']['create_user']= Create the specified tomcat user within the OS. Default istrue. -
node['tomcat']['create_group']= Create the specified tomcat group within the OS. Default istrue. -
node['tomcat']['user']= User to run tomcat as. Default istomcat_<instance name>. -
node['tomcat']['group']= Group of the tomcat user. Default istomcat_<instance name>.
SSL/TLS
-
node['tomcat']['keystore_file']= Optional: Path to the keystore file. If not provided, a new file and a self-signed certificate will be created. -
node['tomcat']['keystore_password']= Optional: Password to the keystore. -
node['tomcat']['ssl_enabled_protocols']= SSL protocols of the HTTPS listener. Default isTLSv1.3,TLSv1.2. -
node['tomcat']['domain_name']= Domain name for generated self-signed SSL certificate. Default isFully Qualified Domain Name.
OpenJDK
-
node['java']['version']= Major Java version. Default version is21.0.12.1+1. -
node['java']['tarball_uri']= JDK tarball URI. Default URI ishttps://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.12.1%2B1/OpenJDK21U-jdk_x64_linux_hotspot_21.0.12.1_1.tar.gz. -
node['java']['tarball_path']= JDK tarball local path. Default path is<file_cache_path>/OpenJDK21U-jdk_x64_linux_hotspot_21.0.12.1_1.tar.gz. -
node['java']['install_path']= JDK installation path. Default path is/opt.
Recipes
configure_ssl
Configures the HTTPS listener in Apache Tomcat application server.
{
"tomcat": {
"version" : "10.1.59",
"instance_name" : "arcgis",
"user": "tomcat_arcgis",
"group": "tomcat_arcgis",
"install_path" : "/opt/tomcat_arcgis_10.1.59",
"keystore_type" : "PKCS12",
"keystore_file" : "/tomcat_arcgis/conf/resources/sslcerts/sslcert.pfx",
"keystore_password": "<password>",
"domain_name": "domain.com",
"ssl_enabled_protocols" : "TLSv1.2"
},
"run_list" : [
"recipe[esri-tomcat::configure_ssl]"
]
}
Note: If the specified keystore file does not exist, the recipe generates a self-signed SSL certificate for the specified domain.
default
Installs Apache Tomcat and configures the HTTPS listener. If the node['tomcat']['forward_ports'] attribute is true (default value), the recipe also configures port forwarding (80 to 8080 and 443 to 8443) using the iptables or firewalld recipes.
{
"tomcat": {
"version" : "10.1.59",
"instance_name" : "arcgis",
"user": "tomcat_arcgis",
"group": "tomcat_arcgis",
"install_path" : "/opt/tomcat_arcgis_10.1.59",
"keystore_type" : "PKCS12",
"keystore_file" : "/tomcat_arcgis/conf/resources/sslcerts/sslcert.pfx",
"keystore_password": "<password>",
"domain_name": "domain.com",
"ssl_enabled_protocols" : "TLSv1.2",
"tarball_path": "/opt/software/archives/apache-tomcat-10.1.59.tar.gz",
"verify_checksum": true,
"forward_ports": true
},
"run_list" : [
"recipe[esri-tomcat]"
]
}
Note: If the specified keystore file does not exist, the recipe generates a self-signed SSL certificate for the specified domain.
firewalld
Configures port forwarding (80 to 8080 and 443 to 8443) using FirewallD.
Note: If the firewalld service was started by the recipe, the recipe runs the script specified by node['tomcat']['firewalld']['init_cmd'], which, by default, opens all the TCP ports on the machine.
{
"tomcat": {
"firewalld": {
"init_cmd": "firewall-cmd --zone=public --permanent --add-port=0-65535/tcp"
}
},
"run_list" : [
"recipe[esri-tomcat::firewalld]"
]
}
install
Installs Apache Tomcat application server.
{
"tomcat": {
"version" : "10.1.59",
"instance_name" : "arcgis",
"user": "tomcat_arcgis",
"group": "tomcat_arcgis",
"install_path" : "/opt/tomcat_arcgis_10.1.59",
"tarball_path": "/opt/software/archives/apache-tomcat-10.1.59.tar.gz",
"verify_checksum": true
},
"run_list" : [
"recipe[esri-tomcat::install]"
]
}
iptables
Configures port forwarding (80 to 8080 and 443 to 8443) using iptables.
{
"run_list" : [
"recipe[esri-tomcat::iptables]"
]
}
openjdk
Installs OpenJDK for Apache Tomcat from a local or remote tarball.
{
"java": {
"version": "21.0.12.1+1",
"tarball_uri": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.12.1%2B1/OpenJDK21U-jdk_x64_linux_hotspot_21.0.12.1_1.tar.gz",
"tarball_path": "/opt/software/archives/OpenJDK21U-jdk_x64_linux_hotspot_21.0.12.1_1.tar.gz",
"install_path": "/opt"
},
"run_list": [
"recipe[esri-tomcat::openjdk]"
]
}
Dependent cookbooks
| tomcat ~> 5.0 |
| iptables ~> 8.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
esri-tomcat cookbook CHANGELOG
This file is used to list changes made in each version of the esri-tomcat cookbook.
0.5.0
- Updated Open JDK and Tomcat versions.
0.4.0
- Updated supported Chef versions.
0.3.3
- Updated Open JDK and Tomcat versions.
0.3.2
- Updated Open JDK and Tomcat versions.
0.3.1
- Added support for Apache Tomcat 10.
0.3.0
- Dropped support for Chef 14.
0.2.2
- Added support for Rocky Linux and AlmaLinux platforms.
0.2.1
- Added new attributes to control tomcat user and group creation.
0.2.0
- Updated HTTPS connector in server.xml.
0.1.9
- Added support for Apache Tomcat 9.
- Added support for new linux platforms.
0.1.8
- Added iptables, firewalld, and openjdk recipes.
0.1.7
- Disabled AJP port connector.
0.1.6
- Added tarball_path attribute.
0.1.5
- Updated and locked versions of dependent cookbooks.
0.1.4
- Install Tomcat 8.0.53 as default.
- Use openjdk for test kitchen.
0.1.3
- Add ec2 test kitchen.
0.1.2
- Update tomcat dependency version > 2.5.2
- Fix chef 14 deprecation warnings
- Update kitchen to use chef 13
0.1.1
- Add additional guard for tomcat_install resource
- Fix some rubocop offenses
0.1.0
- Installs and configures Apache Tomcat for using with ArcGIS Web Adaptor