aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/utils/java.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-12-23 21:42:53 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-12-23 21:42:53 -0200
commita0139760cc478d3ff81aa9581245415097942d39 (patch)
tree969999ae929d7654286d6bca8f6e795efbf2b2f0 /manifests/subsystems/utils/java.pp
parent9d279e9dd9b86be0c3cbf577064fc94f3d775c1f (diff)
downloadpuppet-nodo-a0139760cc478d3ff81aa9581245415097942d39.tar.gz
puppet-nodo-a0139760cc478d3ff81aa9581245415097942d39.tar.bz2
Adding more classes for utilities
Diffstat (limited to 'manifests/subsystems/utils/java.pp')
-rw-r--r--manifests/subsystems/utils/java.pp14
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'],
+ }
+}