From f3f36d795eda489212ea20638f8b7db177f4e6be Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 14 Feb 2011 13:59:23 -0200 Subject: Managing java alternative just on debian boxes --- manifests/subsystems/utils.pp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/manifests/subsystems/utils.pp b/manifests/subsystems/utils.pp index ff9edf1..92e606b 100644 --- a/manifests/subsystems/utils.pp +++ b/manifests/subsystems/utils.pp @@ -76,6 +76,14 @@ class utils::personal { package { [ 'mozilla-firefox-adblock', 'iceweasel', 'sun-java6-jre', 'hplip' ]: ensure => installed, } + + # Java alternative + file { "/etc/alternatives/java": + ensure => "/usr/lib/jvm/java-6-sun/jre/bin/java", + owner => root, + group => root, + require => Package['sun-java6-jre'], + } } default: { } } @@ -121,14 +129,7 @@ class utils::personal { } } - # App alternatives - file { "/etc/alternatives/java": - ensure => "/usr/lib/jvm/java-6-sun/jre/bin/java", - owner => root, - group => root, - require => Package['sun-java6-jre'], - } - + # Flash alternative file { "/etc/alternatives/flash-mozilla.so": ensure => "/usr/lib/flashplugin-nonfree/libflashplayer.so", owner => root, -- cgit v1.2.3