Esri / arcgis-gitops

GitHub Actions workflows for ArcGIS Enterprise deployment and operation
Apache License 2.0
6 stars 1 forks source link

Remove java_version and tomcat_version input variables from arcgis-enterprise-base-linux configs #138

Closed pbobov closed 1 week ago

pbobov commented 2 weeks ago

arcgis-enterprise-base-linux/image Packer template and arcgis-enterprise-base-linux/application Terraform module have java_version and tomcat_version input variables that specify Open JDK and Apache Tomcat versions.

Values of these variables must match java and tomcat versions specified in the manifest files for the ArcGIS version specified by arcgis_version input variables. Besides the suffix of Open JDK archive subdirectory is hardcoded (here and here). This makes update of Open JDK and Apache tomcat too complex.

To workaround the problem template should read the java and tomcat versions from the manifest files instead of input variables. The manifest files should include new arcgis.repository.metadata section that defines version-specific properties of the files, such as names of subdirectories in the archives.

pbobov commented 1 week ago

The fix:

  1. Moves version-specific properties of Open JDK and Apache Tomcat to "arcgis.repository.metadata" section of the manifest JSON files.
  2. Removes java_version and tomcat_version input variables from arcgis-enterprise-base-linux/image Packer template and arcgis-enterprise-base-linux/application module.
  3. Updates arcgis-server-linux template to retrieve tomcat and java versions from "arcgis.repository.metadata" section of the manifest JSON instead of "version" properties instead of using fixed names for jdk and tomcat archives.
  4. Makes the Packer templates and Terraform modules retrieve arcgis.repository.archives and arcgis.repository.patches values from the manifest JSON files.
  5. Fixes an issue with updating Tomcat's SSL certificates in arcgis.server and arcgis.webadaptor Ansible collections.
  6. Renames "index" files to "manifest" files.