aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/java.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/utils/java.pp')
-rw-r--r--manifests/utils/java.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/utils/java.pp b/manifests/utils/java.pp
new file mode 100644
index 0000000..a14635f
--- /dev/null
+++ b/manifests/utils/java.pp
@@ -0,0 +1,18 @@
+class nodo::utils::java {
+ # Java
+ package { [ 'sun-java6-jre' ]:
+ ensure => absent,
+ }
+
+ package { 'default-jre':
+ ensure => present,
+ }
+
+ # Java alternative
+ file { "/etc/alternatives/java":
+ ensure => "/usr/lib/jvm/java-6-openjdk/jre/bin/java",
+ owner => root,
+ group => root,
+ require => Package['default-jre'],
+ }
+}