Skip to content

Commit 2ab8e52

Browse files
committed
Moved k3s token to be with rest of appliance secrets
1 parent bc37064 commit 2ab8e52

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ansible/roles/passwords/defaults/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ slurm_appliance_secrets:
88
vault_openhpc_mungekey: "{{ secrets_openhpc_mungekey | default(vault_openhpc_mungekey | default(secrets_openhpc_mungekey_default)) }}"
99
vault_freeipa_ds_password: "{{ vault_freeipa_ds_password | default(lookup('password', '/dev/null')) }}"
1010
vault_freeipa_admin_password: "{{ vault_freeipa_admin_password | default(lookup('password', '/dev/null')) }}"
11+
k3s_token: "{{ lookup('ansible.builtin.password', '/dev/null', length=64) }}"
1112

1213
secrets_openhpc_mungekey_default:
1314
content: "{{ lookup('pipe', 'dd if=/dev/urandom bs=1 count=1024 2>/dev/null | base64') }}"
1415

15-
k3s_secrets:
16-
k3s_token: "{{ lookup('ansible.builtin.password', '/dev/null', length=64) }}"
17-
1816
openhpc_passwords_output_path: "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') | default(undefined, true) | mandatory('You must define the APPLIANCES_ENVIRONMENT_ROOT environment variable') }}/inventory/group_vars/all/secrets.yml"
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{{ k3s_secrets | to_nice_json }}
1+
{
2+
"k3s_token": "{{ slurm_appliance_secrets.k3s_token }}"
3+
}

0 commit comments

Comments
 (0)