Skip to content

[ANSIBLE] clever way to construct java classpaths #176

Description

@DaanHoogland

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions