Skip to content

Commit

Permalink
add JAVA_HOME to fedora.env
Browse files Browse the repository at this point in the history
  • Loading branch information
antmoth committed Dec 19, 2023
1 parent 1e75533 commit a36bfbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/profile/fulcrum/fedora.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
String $fedora_username = 'fedora',
String $fedora_password = lookup('nebula::profile::fulcrum::mysql::fedora_password'),
) {
$jdk_version = lookup('nebula::jdk_version')
# used in erb file
$java_home = "/usr/lib/jvm/temurin-${jdk_version}-jre-amd64"

ensure_packages([
'tomcat9-user',
])
Expand Down
1 change: 1 addition & 0 deletions templates/profile/fulcrum/fedora.env.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CATALINA_BASE="/opt/fedora"
JAVA_HOME="<%= @java_home %>"
JAVA_OPTS="-Djava.awt.headless=true \
-Djava.io.tmpdir=/tmp/fedora \
-Xmx8g \
Expand Down

0 comments on commit a36bfbd

Please sign in to comment.