aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/java.pp
blob: ec1220f08634f198e687bfd3b33b7a95aa6a2d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class nodo::utils::java {
  # Java
  package { [
    'sun-java6-jre',
  ]:
    ensure => absent,
  }

  package { [
    'default-jre',
    'openjdk-7-jre-headless',
  ]:
    ensure => present,
  }

  # Java alternative
  file { "/etc/alternatives/java":
    ensure  => hiera('nodo::utils::java::alternative', '/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java'),
    owner   => root,
    group   => root,
    require => Package['default-jre'],
  }
}