add basic arch linux support

This commit is contained in:
Kilian Engelhardt
2017-06-20 17:38:06 +02:00
parent 8763d0b388
commit 0bcdd2bc2f
2 changed files with 24 additions and 0 deletions

View File

@@ -62,6 +62,15 @@ class java::config ( ) {
}
}
}
'Archlinux': {
if $java::use_java_home != undef {
file_line { 'java-home-environment':
path => '/etc/profile',
line => "JAVA_HOME=${$java::use_java_home}",
match => 'JAVA_HOME=',
}
}
}
default: {
# Do nothing.
}

View File

@@ -253,6 +253,21 @@ class java::params {
},
}
}
'Archlinux': {
$jdk_package = 'jdk8-openjdk'
$jre_package = 'jre8-openjdk'
$java_home = '/usr/lib/jvm/java-8-openjdk/jre/'
$java = {
'jdk' => {
'package' => $jdk_package,
'java_home' => $java_home,
},
'jre' => {
'package' => $jre_package,
'java_home' => $java_home,
},
}
}
default: { fail("unsupported platform ${::osfamily}") }
}
}