Creates lsd config to user java 8 on debian

This commit is contained in:
Tobias Herre 2020-08-21 14:50:14 +02:00
parent 463ed6d276
commit 2ed29c601f
2 changed files with 31 additions and 5 deletions

View File

@ -236,12 +236,14 @@ class wmdeit_ldap (
# distribution => 'jre', # distribution => 'jre',
# version => "8" # version => "8"
# } # }
#
$java_home = "/usr/lib/jvm/jdk8u202-b08-jre"
java::adopt { 'jdk8' : java::adopt { 'jdk8' :
ensure => 'present', ensure => 'present',
version => '8', version => '8',
java => 'jre', java => 'jre',
} } ->
apt::source { 'lsc': apt::source { 'lsc':
location => 'http://lsc-project.org/debian', location => 'http://lsc-project.org/debian',
repos => 'main', repos => 'main',
@ -253,6 +255,10 @@ java::adopt { 'jdk8' :
} -> } ->
package {"lsc": package {"lsc":
ensure => installed ensure => installed
} ->
file {"/etc/default/lsc":
ensure => file,
content => template("wmdeit_ldap/lsc.erb")
} }

20
templates/lsc.erb Normal file
View File

@ -0,0 +1,20 @@
#====================================================================
# Configuration for LSC init script
# (http://www.lsc-project.org).
#====================================================================
# LSC installation
LSC_BIN="/usr/bin/lsc"
LSC_CFG_DIR="/etc/lsc"
LSC_USER="lsc"
LSC_GROUP="lsc"
LSC_PID_FILE="/var/run/lsc.pid"
LSC_TASKS="all"
LSC_PARAMS=""
# JMX
LSC_JMXPORT="1099"
# JAVA
JAVA_HOME=<%= @java_home %>