File tree Expand file tree Collapse file tree 3 files changed +31
-5
lines changed
environments/.stackhpc/terraform Expand file tree Collapse file tree 3 files changed +31
-5
lines changed Original file line number Diff line number Diff line change 38
38
39
39
- name : Cleanup /tmp
40
40
command : rm -rf /tmp/*
41
+
42
+ - name : Get package facts
43
+ package_facts :
44
+
45
+ - name : Ensure image summary directory exists
46
+ file :
47
+ path : /var/lib/image/
48
+ state : directory
49
+ owner : root
50
+ group : root
51
+ mode : u=rwX,go=rX
52
+
53
+ - name : Write image summary
54
+ copy :
55
+ content : " {{ image_info | to_nice_json }}"
56
+ dest : /var/lib/image/image.json
57
+ vars :
58
+ image_info :
59
+ branch : " {{ lookup('pipe', 'git rev-parse --abbrev-ref HEAD') }}"
60
+ build : " {{ ansible_nodename | split('.') | first }}" # hostname is image name, which contains build info
61
+ os : " {{ ansible_distribution }} {{ ansible_distribution_version }}"
62
+ kernel : " {{ ansible_kernel }}"
63
+ ofed : " {{ ansible_facts.packages['mlnx-ofa_kernel'].0.version | default('-') }}"
64
+ cuda : " {{ ansible_facts.packages['cuda'].0.version | default('-') }}"
65
+ slurm-ohpc : " {{ ansible_facts.packages['slurm-ohpc'].0.version | default('-') }}"
Original file line number Diff line number Diff line change 177
177
178
178
- hosts : builder
179
179
become : yes
180
- gather_facts : no
180
+ gather_facts : yes
181
+ tags : finalise
181
182
tasks :
182
- # - meta: end_here
183
183
- name : Cleanup image
184
184
import_tasks : cleanup.yml
185
185
Original file line number Diff line number Diff line change @@ -29,9 +29,10 @@ variable "cluster_image" {
29
29
description = " single image for all cluster nodes, keyed by os_version - a convenience for CI"
30
30
type = map (string )
31
31
default = {
32
- # https://github.com/stackhpc/ansible-slurm-appliance/pull/427
33
- RL8: " openhpc-ofed-RL8-240906-1042-32568dbb"
34
- RL9: " openhpc-ofed-RL9-240906-1041-32568dbb"
32
+ # https://github.com/stackhpc/ansible-slurm-appliance/pull/444
33
+ RL8: " openhpc-ofed-RL8-241002-1612-1ce702b1"
34
+ RL9: " openhpc-ofed-RL9-241003-1052-1ce702b1"
35
+ RL9- cuda: " openhpc-cuda-RL9-241002-1612-1ce702b1"
35
36
}
36
37
}
37
38
You can’t perform that action at this time.
0 commit comments