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

[ANSIBLE] clever way to construct java classpaths #176

Open
DaanHoogland opened this issue May 31, 2023 · 1 comment
Open

[ANSIBLE] clever way to construct java classpaths #176

DaanHoogland opened this issue May 31, 2023 · 1 comment

Comments

@DaanHoogland
Copy link
Member

when we merge log4j2 the class path and command for the encrypt step becomes

- name: Generate new cm_secretkey_enc
  shell: java -classpath /usr/share/cloudstack-common/lib/cloudstack-utils.jar:/usr/share/cloudstack-common/lib/log4j-api-2.19.0.jar:/usr/share/cloudstack-common/lib/log4j-core-2.19.0.jar com.cloud.utils.crypt.EncryptionCLI -p password -i {{ cm_secretkey }}

this is hard to maintain and the classpath should be constructed from wildcards to be constant over versions.

@weizhouapache
Copy link
Member

good finding @DaanHoogland

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

No branches or pull requests

2 participants