在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:puppetlabs/puppetlabs-java开源软件地址:https://github.com/puppetlabs/puppetlabs-java开源编程语言:Ruby 61.9%开源软件介绍:javaTable of Contents
OverviewInstalls the correct Java package on various platforms. Module DescriptionThe java module can automatically install Java jdk or jre on a wide variety of systems. Java is a base component for many software platforms, but Java system packages don't always follow packaging conventions. The java module simplifies the Java installation process. SetupBeginning with the java moduleTo install the correct Java package on your system, include the UsageThe java module installs the correct jdk or jre package on a wide variety of systems. By default, the module installs the jdk package, but you can set different installation parameters as needed. For example, to install jre instead of jdk, you would set the distribution parameter: class { 'java':
distribution => 'jre',
} To install the latest patch version of Java 8 on CentOS class { 'java' :
package => 'java-1.8.0-openjdk-devel',
} The defined type To install Java to a non-default basedir (defaults: /usr/lib/jvm for Debian; /usr/java for RedHat): java::download { 'jdk8' :
ensure => 'present',
java_se => 'jdk',
url => 'http://myjava.repository/java.tgz",
basedir => '/custom/java',
} AdoptOpenJDKThe defined type java::adopt { 'jdk8' :
ensure => 'present',
version => '8',
java => 'jdk',
}
java::adopt { 'jdk11' :
ensure => 'present',
version => '11',
java => 'jdk',
} To install a specific release of a AdoptOpenJDK Java version, e.g. 8u202-b08, provide both parameters java::adopt { 'jdk8' :
ensure => 'present',
version_major => '8u202',
version_minor => 'b08',
java => 'jdk',
} To install AdoptOpenJDK Java to a non-default basedir (defaults: /usr/lib/jvm for Debian; /usr/java for RedHat): java::adopt { 'jdk8' :
ensure => 'present',
version_major => '8u202',
version_minor => 'b08',
java => 'jdk',
basedir => '/custom/java',
} To ensure that a custom basedir is a directory before AdoptOpenJDK Java is installed (note: manage separately for custom ownership or perms): java::adopt { 'jdk8' :
ensure => 'present',
version_major => '8u202',
version_minor => 'b08',
java => 'jdk',
manage_basedir => true,
basedir => '/custom/java',
} Adoptium TemurinAdoptium Temurin is the successor of AdoptOpenJDK and is supported using the defined type The java::adoptium { 'jdk16' :
ensure => 'present',
version_major => '16',
version_minor => '0',
version_patch => '2',
version_build => '7',
}
java::adoptium { 'jdk17' :
ensure => 'present',
version_major => '17',
version_minor => '0',
version_patch => '1',
version_build => '12',
} To install Adoptium to a non-default basedir (defaults: /usr/lib/jvm for Debian; /usr/java for RedHat): java::adoptium { 'jdk7' :
ensure => 'present',
version_major => '17',
version_minor => '0',
version_patch => '1',
version_build => '12',
basedir => '/custom/java',
} To ensure that a custom basedir is a directory before Adoptium is installed (note: manage separately for custom ownership or perms): java::adoptium { 'jdk8' :
ensure => 'present',
version_major => '17',
version_minor => '0',
version_patch => '1',
version_build => '12',
manage_basedir => true,
basedir => '/custom/java',
} SAP Java (sapjvm / sapmachine)SAP also offers JVM distributions. They are mostly required for their SAP products. In earlier versions it is called "sapjvm", in newer versions they call it "sapmachine". The defined type java::sap { 'sapjvm8' :
ensure => 'present',
version => '8',
java => 'jdk',
}
java::sap { 'sapmachine11' :
ensure => 'present',
version => '11',
java => 'jdk',
} To install a specific release of a SAP Java version, e.g. sapjvm 8.1.063, provide parameter java::sap { 'jdk8' :
ensure => 'present',
version_full => '8.1.063',
java => 'jdk',
} To install SAP Java to a non-default basedir (defaults: /usr/lib/jvm for Debian; /usr/java for RedHat): java::adopt { 'sapjvm8' :
ensure => 'present',
version_full => '8.1.063',
java => 'jdk',
basedir => '/custom/java',
} To ensure that a custom basedir is a directory before SAP Java is installed (note: manage separately for custom ownership or perms): java::adopt { 'sapjvm8' :
ensure => 'present',
version_full => '8.1.063',
java => 'jdk',
manage_basedir => true,
basedir => '/custom/java',
} ReferenceFor information on the classes and types, see the REFERENCE.md. For information on the facts, see below. FactsThe java module includes a few facts to describe the version of Java installed on the system:
Note: The facts return LimitationsFor an extensive list of supported operating systems, see metadata.json This module cannot guarantee installation of Java versions that are not available on platform repositories. This module only manages a singular installation of Java, meaning it is not possible to manage e.g. OpenJDK 7, Oracle Java 7 and Oracle Java 8 in parallel on the same system. Oracle Java packages are not included in Debian 7 and Ubuntu 12.04/14.04 repositories. To install Java on those systems, you'll need to package Oracle JDK/JRE, and then the module can install the package. For more information on how to package Oracle JDK/JRE, see the Debian wiki. This module is officially supported for the following Java versions and platforms: OpenJDK is supported on:
Oracle Java is supported on:
AdoptOpenJDK Java is supported on:
Adoptium Temurin Java is supported on:
SAP Java 7 and 8 (=sapjvm) are supported (by SAP) on:
(however installations on other distributions mostly also work well) For SAP Java > 8 (=sapmachine) please refer to the OpenJDK list as it is based on OpenJDK and has no special requirements. Known issuesWhere Oracle change the format of the URLs to different installer packages, the curl to fetch the package may fail with a HTTP/404 error. In this case, passing a full known good URL using the OpenBSDOpenBSD packages install Java JRE/JDK in a unique directory structure, not linking
the binaries to a standard directory. Because of that, the path to this location
is hardcoded in the DevelopmentPuppet modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. To contribute to Puppet projects, see our module contribution guide. ContributorsThe list of contributors can be found at https://github.com/puppetlabs/puppetlabs-java/graphs/contributors. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论