-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to tomcat 9 * Update to python3-psycopg package * Installs yarn & node via packages * Adds support for newer ssh * Remove dangling reference * Repair tomcat userid to tomcat * Set fits system property in tomcat9 defaults file, removes incompatible catalina.properties * Installs ed25591 in user environment * Installs crypto gems in ubuntu userland * Adds fedora-data to sandbox. * Adds acl package * Adds /tmp to tomcat permitted read-write directories * Adds jaxb & activation jars to tomcat classpath. * Installs activation & jaxb w/ sudo * Update to node 10, oldest node available for our distro of Ubuntu Co-authored-by: Max Kadel <max@curationexperts.com>
- Loading branch information
Showing
14 changed files
with
146 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/var/log/tomcat8/catalina.out { | ||
/var/log/tomcat9/catalina.out { | ||
copytruncate | ||
weekly | ||
rotate 52 | ||
compress | ||
missingok | ||
create 640 tomcat8 adm | ||
create 640 tomcat9 adm | ||
} |
11 changes: 6 additions & 5 deletions
11
roles/fedora/templates/tomcat8.j2 → roles/fedora/templates/tomcat9.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
# Ansible created this file and made a timestamped backup of the original | ||
# This template will construct settings that look something like | ||
# TOMCAT8_USER=tomcat8 | ||
# TOMCAT8_USER=tomcat9 | ||
# or | ||
# TOMCAT_GROUP=tomcat | ||
TOMCAT8_USER=tomcat8 | ||
TOMCAT8_GROUP=tomcat8 | ||
# JAVA_OPTS="-Dfcrepo.home=/opt/fedora-data -Dfcrepo.modeshape.configuration=classpath:/config/{{ fedora_database }}/repository.json -Djava.awt.headless=true -XX:+UseG1GC -XX:+UseCompressedOops -XX:-UseLargePagesIndividualAllocation -XX:MaxPermSize={{ tomcat_permgen_memory }} -Xms{{ tomcat_min_memory }} -Xmx{{ tomcat_max_memory }} -Djava.util.logging.config.file=/etc/tomcat8/logging.properties -server" | ||
TOMCAT9_USER=tomcat | ||
TOMCAT9_GROUP=tomcat | ||
# JAVA_OPTS="-Dfcrepo.home=/opt/fedora-data -Dfcrepo.modeshape.configuration=classpath:/config/{{ fedora_database }}/repository.json -Djava.awt.headless=true -XX:+UseG1GC -XX:+UseCompressedOops -XX:-UseLargePagesIndividualAllocation -XX:MaxPermSize={{ tomcat_permgen_memory }} -Xms{{ tomcat_min_memory }} -Xmx{{ tomcat_max_memory }} -Djava.util.logging.config.file=/etc/tomcat9/logging.properties -server" | ||
|
||
JAVA_OPTS="${JAVA_OPTS} -Dfcrepo.home=/opt/fedora-data" | ||
JAVA_OPTS="${JAVA_OPTS} -Dfcrepo.modeshape.configuration=classpath:/config/jdbc-postgresql/repository.json" | ||
JAVA_OPTS="${JAVA_OPTS} -Dfcrepo.postgresql.username={{ fcdb_user }}" | ||
JAVA_OPTS="${JAVA_OPTS} -Dfcrepo.postgresql.password={{ fcdb_pass }}" | ||
JAVA_OPTS="${JAVA_OPTS} -Dfcrepo.postgresql.host=localhost" | ||
JAVA_OPTS="${JAVA_OPTS} -Dfcrepo.postgresql.port=5432" | ||
JAVA_OPTS="${JAVA_OPTS} -Dfits.home=/usr/local/lib/fits-1.4.0" | ||
JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true" | ||
JAVA_OPTS="${JAVA_OPTS} -XX:+UseG1GC" | ||
JAVA_OPTS="${JAVA_OPTS} -XX:+UseCompressedOops" | ||
JAVA_OPTS="${JAVA_OPTS} -XX:-UseLargePagesIndividualAllocation" | ||
JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize={{ tomcat_permgen_memory }}" | ||
JAVA_OPTS="${JAVA_OPTS} -Xms{{ tomcat_min_memory }}" | ||
JAVA_OPTS="${JAVA_OPTS} -Xmx{{ tomcat_max_memory }}" | ||
JAVA_OPTS="${JAVA_OPTS} -Djava.util.logging.config.file=/etc/tomcat8/logging.properties" | ||
JAVA_OPTS="${JAVA_OPTS} -Djava.util.logging.config.file=/etc/tomcat9/logging.properties" | ||
JAVA_OPTS="${JAVA_OPTS} -server" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# | ||
# Systemd unit file for Apache Tomcat | ||
# | ||
|
||
[Unit] | ||
Description=Apache Tomcat 9 Web Application Server | ||
Documentation=https://tomcat.apache.org/tomcat-9.0-doc/index.html | ||
After=network.target | ||
RequiresMountsFor=/var/log/tomcat9 /var/lib/tomcat9 | ||
|
||
[Service] | ||
|
||
# Configuration | ||
Environment="CATALINA_HOME=/usr/share/tomcat9" | ||
Environment="CATALINA_BASE=/var/lib/tomcat9" | ||
Environment="CATALINA_TMPDIR=/tmp" | ||
Environment="JAVA_OPTS=-Djava.awt.headless=true" | ||
|
||
# Lifecycle | ||
Type=simple | ||
ExecStartPre=+/usr/libexec/tomcat9/tomcat-update-policy.sh | ||
ExecStart=/bin/sh /usr/libexec/tomcat9/tomcat-start.sh | ||
SuccessExitStatus=143 | ||
Restart=on-abort | ||
|
||
# Logging | ||
SyslogIdentifier=tomcat9 | ||
|
||
# Security | ||
User=tomcat | ||
Group=tomcat | ||
PrivateTmp=no | ||
AmbientCapabilities=CAP_NET_BIND_SERVICE | ||
NoNewPrivileges=true | ||
CacheDirectory=tomcat9 | ||
CacheDirectoryMode=750 | ||
ProtectSystem=strict | ||
ReadWritePaths=/etc/tomcat9/Catalina/ | ||
ReadWritePaths=/var/lib/tomcat9/webapps/ | ||
ReadWritePaths=/var/log/tomcat9/ | ||
ReadWritePaths=/opt/fedora-data | ||
ReadWritePaths=/tmp | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.