Skip to content

Commit

Permalink
change encrypt to use --encrypt-vault-id
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaveva committed Jul 8, 2024
1 parent c825ca1 commit ecb669f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public String encryptVariable(String key,
}
procArgs.add(ansibleCommand);
procArgs.add("encrypt_string");
procArgs.add("--vault-id");
procArgs.add("internal-encrypt@" + vaultPasswordScriptFile.getAbsolutePath());
procArgs.add("--encrypt-vault-id");
procArgs.add("internal-encrypt");

if(debug){
System.out.println("encryptVariable " + key + ": " + procArgs);
Expand All @@ -82,7 +82,7 @@ public String encryptVariable(String key,

Map<String, String> env = new HashMap<>();
env.put("VAULT_ID_SECRET", masterPassword);
env.put("ANSIBLE_VAULT_PASSWORD_FILE", "");
env.put("ANSIBLE_VAULT_IDENTITY_LIST", "internal-encrypt@" + vaultPasswordScriptFile.getAbsolutePath());

Process proc = null;

Expand Down

0 comments on commit ecb669f

Please sign in to comment.