Skip to content

Commit cb4ca3c

Browse files
authored
CaaS pre-hook fix for galaxy requirements validation (#767)
* pre-hook to copy requirements.yml.last * remove mention of CI in comments
1 parent 73f614a commit cb4ca3c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

environments/.caas/hooks/pre.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,14 @@
6363
- dnf_repos
6464
loop: "{{ groups['cluster'] }}"
6565
when: dnf_repos_enabled | default(false) | bool
66+
67+
# Workaround for setup-env.sh not running in CaaS environment, so:
68+
# https://github.com/stackhpc/ansible-slurm-appliance/blob/ba9699267449fba58cd9c04c451759a914fd7144/ansible/validate.yml#L16
69+
# doesn't break CaaS platforms
70+
- hosts: localhost
71+
gather_facts: no
72+
tasks:
73+
- name: Prepare requirements.yml.last for galaxy validation
74+
copy:
75+
src: "{{ appliances_repository_root }}/requirements.yml"
76+
dest: "{{ appliances_repository_root }}/requirements.yml.last"

0 commit comments

Comments
 (0)