Skip to content

Commit d7efaf6

Browse files
committed
fix bug with json-encoded munge key in compute-init playbook
1 parent 86ae309 commit d7efaf6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ansible/roles/compute_init/files/compute-init.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,9 @@
299299
# if not the case
300300
- name: Write Munge key
301301
copy:
302-
content: "{{ openhpc_munge_key }}"
302+
# NB: openhpc_munge_key is *binary* and may not survive json encoding
303+
# so do same as environments/common/inventory/group_vars/all/openhpc.yml
304+
content: "{{ vault_openhpc_mungekey | b64decode }}"
303305
dest: "/etc/munge/munge.key"
304306
owner: munge
305307
group: munge

0 commit comments

Comments
 (0)