aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/utils/java.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-30 17:59:09 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-30 17:59:09 -0200
commit47205a5956d5caeefc0188d73dfc62d05ab16ab1 (patch)
treee734a27805dec521552b628f675190b97dd86e17 /manifests/subsystems/utils/java.pp
parentc17900e55d18401f3642eab11a5bff6688d724ee (diff)
downloadpuppet-nodo-47205a5956d5caeefc0188d73dfc62d05ab16ab1.tar.gz
puppet-nodo-47205a5956d5caeefc0188d73dfc62d05ab16ab1.tar.bz2
Removing old and unused packages; adding vrms
Diffstat (limited to 'manifests/subsystems/utils/java.pp')
-rw-r--r--manifests/subsystems/utils/java.pp8
1 files changed, 6 insertions, 2 deletions
diff --git a/manifests/subsystems/utils/java.pp b/manifests/subsystems/utils/java.pp
index 903bc73..49f25ee 100644
--- a/manifests/subsystems/utils/java.pp
+++ b/manifests/subsystems/utils/java.pp
@@ -1,12 +1,16 @@
class utils::java {
# Java
package { [ 'sun-java6-jre', 'openjdk-6-jre' ]:
- ensure => installed,
+ ensure => absent,
+ }
+
+ package { 'default-jre':
+ ensure => present,
}
# Java alternative
file { "/etc/alternatives/java":
- ensure => "/usr/lib/jvm/java-6-sun/jre/bin/java",
+ ensure => "/usr/lib/jvm/java-6-openjdk/jre/bin/java",
owner => root,
group => root,
require => Package['sun-java6-jre'],