Skip to content

Commit

Permalink
fix stackhpc cve-2023-41914 build
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb committed Oct 20, 2023
1 parent c147d9c commit c89fa83
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions ansible/roles/cve-2023-41914/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ This role can be run in two ways:

**NB**: This playbook will ALWAYS stop and restart Slurm, even if no updates are actually required.

2. To remediate images during build (i.e no Slurm services are running, no slurm database exists), run `tasks/install-rpms.yml`, e.g. using the following in an environment pre-hook:
2. To remediate images during build (i.e no Slurm services are running, no slurm database exists), run `tasks/validate.yml` then `tasks/install-rpms.yml`, e.g. using the following in an environment pre-hook:

```yaml
- hosts: builder
gather_facts: no
become: yes
tasks:
- name: Fix cve-2023-41914
- name: Check fixes for cve-2023-41914 can be applied
import_role:
name: cve-2023-41914
tasks_from: validate.yml
- name: Apply fixes for cve-2023-41914
import_role:
name: cve-2023-41914
tasks_from: install-rpms.yml
Expand Down
6 changes: 5 additions & 1 deletion environments/.stackhpc/hooks/post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
gather_facts: no
become: yes
tasks:
- name: Fix cve-2023-41914
- name: Check fixes for cve-2023-41914 can be applied
import_role:
name: cve-2023-41914
tasks_from: validate.yml
- name: Apply fixes for cve-2023-41914
import_role:
name: cve-2023-41914
tasks_from: install-rpms.yml

0 comments on commit c89fa83

Please sign in to comment.