Skip to content

Commit a599130

Browse files
authored
ensure /etc isn't writable by group (#168)
1 parent aec0dad commit a599130

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tasks/runtime.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@
4141
delegate_to: "{{ openhpc_slurm_control_host }}"
4242
when: openhpc_slurm_control_host in ansible_play_hosts
4343

44+
- name: Fix permissions on /etc to pass Munge startup checks
45+
# Rocky-9-GenericCloud-Base-9.4-20240523.0.x86_64.qcow2 makes /etc g=rwx rather than g=rx (where group=root)
46+
# which fails munged startup checks
47+
file:
48+
path: /etc
49+
state: directory
50+
mode: g-w
51+
4452
- name: Write Munge key
4553
copy:
4654
content: "{{ openhpc_munge_key or (openhpc_control_munge_key.content | b64decode) }}"

0 commit comments

Comments
 (0)