Feature Request
Add support for installing Java packages from alternative or internal package mirrors such as Artifactory or Nexus repositories.
Motivation
Many organizations maintain internal mirrors of external repositories for security, bandwidth, and reliability reasons. Currently, users cannot redirect Java installations to use these internal mirrors, forcing them to connect directly to external repositories which may not be accessible in restricted environments.
Proposed Solution
Add new properties to the relevant resources to allow specifying alternative repository URLs:
For temurin_package_install:
repository_uri: Allow overriding the default Adoptium repository URL
For openjdk_pkg_install:
repository_uri: Allow specifying a custom APT/YUM repository URL
For source-based installations (openjdk_source_install, corretto_install):
- Enhance the existing
url property to clearly document that it can be used for internal mirrors
Expected Behavior
When a custom repository URL is provided, the cookbook should:
- Use the provided URL instead of the default repository URL
- Maintain all other functionality (alternatives setup, etc.)
- Validate that the repository structure matches expected patterns
Related Resources
- All Java installation resources:
temurin_package_install, openjdk_pkg_install, openjdk_install, openjdk_source_install, and corretto_install.
Additional Context
This would be particularly useful for organizations that:
- Have strict security policies prohibiting direct internet access
- Maintain internal mirrors for bandwidth/reliability reasons
- Need to apply internal patches or customizations to Java packages
Feature Request
Add support for installing Java packages from alternative or internal package mirrors such as Artifactory or Nexus repositories.
Motivation
Many organizations maintain internal mirrors of external repositories for security, bandwidth, and reliability reasons. Currently, users cannot redirect Java installations to use these internal mirrors, forcing them to connect directly to external repositories which may not be accessible in restricted environments.
Proposed Solution
Add new properties to the relevant resources to allow specifying alternative repository URLs:
For
temurin_package_install:repository_uri: Allow overriding the default Adoptium repository URLFor
openjdk_pkg_install:repository_uri: Allow specifying a custom APT/YUM repository URLFor source-based installations (
openjdk_source_install,corretto_install):urlproperty to clearly document that it can be used for internal mirrorsExpected Behavior
When a custom repository URL is provided, the cookbook should:
Related Resources
temurin_package_install,openjdk_pkg_install,openjdk_install,openjdk_source_install, andcorretto_install.Additional Context
This would be particularly useful for organizations that: