Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need system java #20

Open
Enrice opened this issue Sep 1, 2020 · 7 comments
Open

Need system java #20

Enrice opened this issue Sep 1, 2020 · 7 comments

Comments

@Enrice
Copy link

Enrice commented Sep 1, 2020

Recently (actually not that recently ;-) ) support was removed for system Java because of artifactory bundling Java 11 anyway.

I NEED support for system Java mainly because of automatic certificate distribution.

@fraenki
Copy link
Contributor

fraenki commented Sep 2, 2020

@Enrice ...and what is your feature request or proposal? :)
I'm asking because I contributed the removal of $manage_java. I'd recommend https://github.com/puppetlabs/puppetlabs-java to manage the system Java.

@Enrice
Copy link
Author

Enrice commented Sep 2, 2020

@fraenki well, not the management of Java itself is the issue, but the configuration of an external Java as the one to be used. So to speak, an easy way to configure system.yaml (as of artifactory 7), e.g.:

shared:
    javaHome: /usr/lib/jvm/java

@fraenki
Copy link
Contributor

fraenki commented Sep 2, 2020

Understood. However, currently system.yaml is not managed by this module for a reason:

# Starting with Artifactory 7 the configuration is stored in YAML
# format. However, these YAML files don't work with augeas, so there
# is currently no way to implement the password-encryption-hack that
# is used for legacy versions.
# TODO: Manage system.yaml, especially the DB configuration.

Not saying that it shouldn't be implemented, but it's some work to do :)

@Enrice
Copy link
Author

Enrice commented Sep 2, 2020

I see. Thank you.

@alexjfisher
Copy link
Contributor

@fraenki Is the algorithm used to do the encryption known? ie Would it be possible to implement it in a function?

@fraenki
Copy link
Contributor

fraenki commented Jan 8, 2021

@alexjfisher I have no idea :(

@deltoura
Copy link

Same problem here. We would like to use the system Java because it is configured with our internal CA certificate in its truststore, required to access our LDAP.
The only workaround we found is to add the certificate to the truststore of Artifactory's bundled JDK.
But it would be much more convenient if we could configure Artifactory to use the system JDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants