diff options
Diffstat (limited to 'manifests/subsystems/utils/java.pp')
-rw-r--r-- | manifests/subsystems/utils/java.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/subsystems/utils/java.pp b/manifests/subsystems/utils/java.pp new file mode 100644 index 0000000..903bc73 --- /dev/null +++ b/manifests/subsystems/utils/java.pp @@ -0,0 +1,14 @@ +class utils::java { + # Java + package { [ 'sun-java6-jre', 'openjdk-6-jre' ]: + 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'], + } +} |