aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/utils/java.pp
blob: 903bc737c75f137d9d9a0743a56a6ba149219e9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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'],
  }
}