OpenBSD doesn't have /etc/environment, therefore there is no
need to fiddle with it. The default case statement, "do nothing" is all fine here. Facter::Util::Resolution.with_env is long time gone since Facter > 2.x. That was even longer before introduced by me. Remove that OpenBSD special case in the java_version fact, and assume that $PATH is properly set in order to find the 'java' binary. Additionally confine the java_default_home and java_libjvm_path to OpenBSD kernel as well. Add some flesh to the java_default_home fact to allow it to find the java binary.
This commit is contained in:
committed by
Will Meek
parent
db30eb9e2d
commit
bdfc567c18
@@ -44,7 +44,7 @@ class java::config ( ) {
|
||||
}
|
||||
}
|
||||
}
|
||||
'OpenBSD', 'FreeBSD', 'Suse': {
|
||||
'FreeBSD', 'Suse': {
|
||||
if $java::use_java_home != undef {
|
||||
file_line { 'java-home-environment':
|
||||
path => '/etc/environment',
|
||||
|
||||
Reference in New Issue
Block a user