Skip to content

Commit

Permalink
ensure /etc isn't writable by group (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb authored Jun 5, 2024
1 parent aec0dad commit a599130
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@
delegate_to: "{{ openhpc_slurm_control_host }}"
when: openhpc_slurm_control_host in ansible_play_hosts

- name: Fix permissions on /etc to pass Munge startup checks
# Rocky-9-GenericCloud-Base-9.4-20240523.0.x86_64.qcow2 makes /etc g=rwx rather than g=rx (where group=root)
# which fails munged startup checks
file:
path: /etc
state: directory
mode: g-w

- name: Write Munge key
copy:
content: "{{ openhpc_munge_key or (openhpc_control_munge_key.content | b64decode) }}"
Expand Down

0 comments on commit a599130

Please sign in to comment.