Creates lsd config to user java 8 on debian
This commit is contained in:
parent
463ed6d276
commit
2ed29c601f
|
@ -236,12 +236,14 @@ class wmdeit_ldap (
|
||||||
# distribution => 'jre',
|
# distribution => 'jre',
|
||||||
# version => "8"
|
# version => "8"
|
||||||
# }
|
# }
|
||||||
java::adopt { 'jdk8' :
|
#
|
||||||
ensure => 'present',
|
$java_home = "/usr/lib/jvm/jdk8u202-b08-jre"
|
||||||
version => '8',
|
|
||||||
java => 'jre',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
java::adopt { 'jdk8' :
|
||||||
|
ensure => 'present',
|
||||||
|
version => '8',
|
||||||
|
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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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 %>
|
||||||
|
|
Loading…
Reference in New Issue