aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/utils/java.pp
blob: 48acd59573ae262bd0724bdfc3e241d87abb9ab8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class utils::java {
  # Java
  package { [ 'sun-java6-jre', 'openjdk-6-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'],
  }
}