mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 10:08:20 -05:00
45 lines
8.1 KiB
JSON
45 lines
8.1 KiB
JSON
|
{
|
||
|
"name": "java",
|
||
|
"description": "Installs Java runtime.",
|
||
|
"long_description": "Description\n===========\n\nInstalls a Java. Uses OpenJDK by default but supports installation of Oracle's JDK.\n\nThis cookbook contains the `java_ark` LWPR which has been deprecated\nin favor of [ark](https://github.com/opscode-cookbooks/ark).\n\n**IMPORTANT NOTE**\n\nAs of 26 March 2012 you can no longer directly download\nthe JDK from Oracle's website without using a special cookie. This cookbook uses\nthat cookie to download the oracle recipe on your behalf, but . . .\n\nthe java::oracle recipe forces you to set either override\nthe `node['java']['oracle']['accept_oracle_download_terms']` to true or set up a\nprivate repository accessible by HTTP.\n\nExample\n\n### override the `accept_oracle_download_terms`\n\nroles/base.rb\nThis cookbook also provides the `java_ark` LWRP which other java\ncookbooks can use to install java-related applications from binary\npackages.\n\n default_attributes(\n :java => {\n :oracle => {\n \"accept_oracle_download_terms\" => true\n }\n }\n )\n\nYou are most encouraged to voice your complaints to Oracle and/or\nswitch to OpenJDK.\n\nRequirements\n============\n\nPlatform\n--------\n\n* Debian, Ubuntu\n* CentOS, Red Hat, Fedora, Scientific, Amazon\n* ArchLinux\n* FreeBSD\n* Windows\n\nAttributes\n==========\n\nSee `attributes/default.rb` for default values.\n\n* `node[\"java\"][\"install_flavor\"]` - Flavor of JVM you would like installed (`oracle` or\n`openjdk`), default `openjdk`.\n* `node['java']['java_home']` - Default location of the \"`$JAVA_HOME`\".\n* `node['java']['tarball']` - Name of the tarball to retrieve from your corporate\nrepository default `jdk1.6.0_29_i386.tar.gz`\n* `node['java']['tarball_checksum']` - Checksum for the tarball, if you use a different\ntarball, you also need to create a new sha256 checksum\n* `node['java']['jdk']` - Version and architecture specific attributes for setting the\nURL on Oracle's site for the JDK, and the checksum of the .tar.gz.\n* `node['java']['remove_deprecated_packages']` - Removes the now deprecated Ubuntu JDK\npackages from the system, default `false`\n* `node['java']['oracle']['accept_oracle_download_terms']` - Indicates that you accept\n Oracle's EULA\n* `node['java']['windows']['url']` - The internal location of your java install for windows\n* `node['java']['windows']['package_name']` - The package name used by windows_package to\n check in the registry to determine if the install has already been run\n\nRecipes\n=======\n\ndefault\n-------\n\nInclude the default recipe in a run list, to get `java`. By default\nthe `openjdk` flavor of Java is installed, but this can be changed by\nusing the `install_flavor` attribute. If the platform is windows it \nwill include the windows recipe instead.\n\nOpenJDK is the default because of licensing changes made upstream by\nOracle. See notes on the `oracle` recipe below.\n\nopenjdk\n-------\n\nThis recipe installs the `openjdk` flavor of Java.\n\noracle\n------\n\nThis recipe installs the `oracle` flavor of Java. This recipe does not\nuse distribution packages as Oracle changed the licensing terms with\nJDK 1.6u27 and prohibited the practice for both the debian and EL worlds.\n\nFor both debian and centos/rhel, this recipe pulls the binary\ndistribution from the Oracle website, and installs it in the default\nJAVA_HOME for each distribution. For debian/ubuntu, this is\n/usr/lib/jvm/default-java. For Centos/RHEL, this is /usr/lib/jvm/java\n\nAfter putting the binaries in place, the oracle recipe updates\n/usr/bin/java to point to the installed JDK using the\n`update-alternatives` script\n\noracle_i386\n-----------\n\nThis recipe installs the 32-bit Java virtual machine without setting\nit as the default. This can be useful if you have applications on the\nsame machine that require different versions of the JVM.\n\nwindows\n-------\n\nBecause there is no easy way to pull the java msi off oracle's site, \nthis recipe requires you to host it internally on your own http repo.\n\nResources/Providers\n===================\n\nThis
|
||
|
"maintainer": "Opscode, Inc.",
|
||
|
"maintainer_email": "cookbooks@opscode.com",
|
||
|
"license": "Apache 2.0",
|
||
|
"platforms": {
|
||
|
"debian": ">= 0.0.0",
|
||
|
"ubuntu": ">= 0.0.0",
|
||
|
"centos": ">= 0.0.0",
|
||
|
"redhat": ">= 0.0.0",
|
||
|
"scientific": ">= 0.0.0",
|
||
|
"fedora": ">= 0.0.0",
|
||
|
"amazon": ">= 0.0.0",
|
||
|
"arch": ">= 0.0.0",
|
||
|
"oracle": ">= 0.0.0",
|
||
|
"freebsd": ">= 0.0.0",
|
||
|
"windows": ">= 0.0.0"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"windows": ">= 0.0.0"
|
||
|
},
|
||
|
"recommendations": {
|
||
|
},
|
||
|
"suggestions": {
|
||
|
},
|
||
|
"conflicting": {
|
||
|
},
|
||
|
"providing": {
|
||
|
},
|
||
|
"replacing": {
|
||
|
},
|
||
|
"attributes": {
|
||
|
},
|
||
|
"groupings": {
|
||
|
},
|
||
|
"recipes": {
|
||
|
"java": "Installs Java runtime",
|
||
|
"java::openjdk": "Installs the OpenJDK flavor of Java",
|
||
|
"java::oracle": "Installs the Oracle flavor of Java",
|
||
|
"java::oracle_i386": "Installs the 32-bit jvm without setting it as the default"
|
||
|
},
|
||
|
"version": "1.10.0"
|
||
|
}
|