Commits

Rich Manalang [Atlassian]  committed 973ddf3

forgot to add java7 module

  • Participants
  • Parent commits ca747b3

Comments (0)

Files changed (5)

File modules/java7/Modulefile

+name 'softek-java7'
+version '0.1.0'
+source 'git://github.com/softek/puppet-java7.git'
+author 'Scott Smerchek'
+license ''
+summary 'Oracle Java7 Puppet Module'
+description 'This module manages Oracle Java7. Tested on Ubuntu'
+project_page 'http://github.com/softek/puppet-java7'
+
+## Add dependencies, if any:
+dependency 'puppetlabs/apt', '>= 1.0.1'

File modules/java7/README.md

+# Java7 Puppet Module
+This module manages Oracle Java7.
+
+This module has been tested against 3.0.1 on Ubuntu 12.04 and is known to not support
+all features against earlier versions.
+
+Pull requests to add support for other operating systems are welcome.
+
+*NOTE:* This module may only be used if you agree to the Oracle license: http://www.oracle.com/technetwork/java/javase/terms/license/
+
+### Usage
+
+    include java7
+
+### Author
+* Scott Smerchek <scott.smerchek@softekinc.com>

File modules/java7/files/java.preseed

+oracle-java7-installer	shared/present-oracle-license-v1-1	note	
+oracle-java7-installer	oracle-java7-installer/local	string	
+oracle-java7-installer	shared/accepted-oracle-license-v1-1	boolean	true

File modules/java7/manifests/init.pp

+# Class: java7
+#
+# This module manages Oracle Java7
+# Parameters: none
+# Requires:
+#  apt
+# Sample Usage:
+#  include java7
+class java7 {
+  case $::operatingsystem {
+    debian: {
+      include apt
+      
+      apt::source { 'webupd8team': 
+        location          => "http://ppa.launchpad.net/webupd8team/java/ubuntu",
+        release           => "precise",
+        repos             => "main",
+        key               => "EEA14886",
+        key_server        => "keyserver.ubuntu.com",
+        include_src       => true
+      }
+      package { 'oracle-java7-installer':
+        responsefile => '/tmp/java.preseed',
+        require      => [
+                          Apt::Source['webupd8team'],
+                          File['/tmp/java.preseed']
+                        ],
+      }
+   }
+   ubuntu: {
+     include apt
+
+      apt::ppa { 'ppa:webupd8team/java': }
+      package { 'oracle-java7-installer':
+        responsefile => '/tmp/java.preseed',
+        require      => [
+                          Apt::Ppa['ppa:webupd8team/java'],
+                          File['/tmp/java.preseed']
+                        ],
+      }
+   }
+   default: { notice "Unsupported operatingsystem ${::operatingsystem}" }
+ }
+
+  case $::operatingsystem {
+    debian, ubuntu: {
+      file { '/tmp/java.preseed':
+        source => 'puppet:///modules/java7/java.preseed',
+        mode   => '0600',
+        backup => false,
+      }
+    }
+    default: { notice "Unsupported operatingsystem ${::operatingsystem}" }
+  }
+}

File modules/java7/metadata.json

+{
+  "version": "0.1.0",
+  "project_page": "http://github.com/softek/puppet-java7",
+  "source": "git://github.com/softek/puppet-java7.git",
+  "checksums": {
+    "Modulefile": "c3a79ce407b70e7d27e3c93f398f19fd",
+    "files/java.preseed": "7e39d91ad5e8514ea8627ba773f0d840",
+    "manifests/init.pp": "01a9ec9a475e66ed6e69e19a2d8ff452",
+    "README.md": "59beb4e499a5738aac23b59e964956b0"
+  },
+  "types": [
+
+  ],
+  "author": "Scott Smerchek",
+  "dependencies": [
+    {
+      "version_requirement": ">= 1.0.1",
+      "name": "puppetlabs/apt"
+    }
+  ],
+  "license": "",
+  "summary": "Oracle Java7 Puppet Module",
+  "description": "This module manages Oracle Java7. Tested on Ubuntu",
+  "name": "softek-java7"
+}