jdk installation and java_home ist set in params.pp
This commit is contained in:
parent
ba82c36025
commit
b05a6522bd
|
@ -3,7 +3,14 @@
|
|||
#
|
||||
|
||||
class plnxtools(
|
||||
$opt_dir = $plnxtools::params::opt_dir
|
||||
$opt_dir = $plnxtools::params::opt_dir,
|
||||
|
||||
# a list of packages to install jdks
|
||||
$jdks = $plnxtools::params::jdks,
|
||||
|
||||
# default JAVA_HOME
|
||||
$java_home = $plnxtools::params::java_home,
|
||||
|
||||
)
|
||||
inherits plnxtools::params{
|
||||
|
||||
|
@ -12,6 +19,10 @@ inherits plnxtools::params{
|
|||
ensure => directory
|
||||
}
|
||||
|
||||
#
|
||||
# For most tools FreeBSD needs to bash installed
|
||||
# accassible by /bin/bash
|
||||
#
|
||||
if $::osfamily == 'FreeBSD' {
|
||||
package {"bash":
|
||||
ensure => installed
|
||||
|
@ -22,7 +33,7 @@ inherits plnxtools::params{
|
|||
}
|
||||
}
|
||||
|
||||
package { 'openjdk11':
|
||||
package { $jdks:
|
||||
ensure => installed
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,17 @@
|
|||
#
|
||||
# params.pp
|
||||
#
|
||||
|
||||
class plnxtools::params{
|
||||
$opt_dir = "/opt"
|
||||
|
||||
case $::osfamily {
|
||||
'FreeBSD':{
|
||||
$jdks = ['openjdk11']
|
||||
$java_home = "/usr/local/openjdk11"
|
||||
}
|
||||
default: {
|
||||
|
||||
}}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue