Skip to content

Commit 0e8a242

Browse files
authored
Merge branch 'main' into feat/auto-bump-timestamps
2 parents 365e54f + fd6eb4f commit 0e8a242

File tree

43 files changed

+896
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+896
-71
lines changed

.github/workflows/doca.yml renamed to .github/workflows/extra.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test DOCA extra build
1+
name: Test extra build
22
on:
33
workflow_dispatch:
44
push:
@@ -7,16 +7,18 @@ on:
77
paths:
88
- 'environments/.stackhpc/terraform/cluster_image.auto.tfvars.json'
99
- 'ansible/roles/doca/**'
10-
- '.github/workflows/doca'
10+
- 'ansible/roles/cuda/**'
11+
- '.github/workflows/extra.yml'
1112
pull_request:
1213
paths:
1314
- 'environments/.stackhpc/terraform/cluster_image.auto.tfvars.json'
1415
- 'ansible/roles/doca/**'
15-
- '.github/workflows/doca'
16+
- 'ansible/roles/cuda/**'
17+
- '.github/workflows/extra.yml'
1618

1719
jobs:
1820
doca:
19-
name: doca-build
21+
name: extra-build
2022
concurrency:
2123
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.build.image_name }} # to branch/PR + OS
2224
cancel-in-progress: true
@@ -25,12 +27,14 @@ jobs:
2527
fail-fast: false # allow other matrix jobs to continue even if one fails
2628
matrix: # build RL8, RL9
2729
build:
28-
- image_name: openhpc-doca-RL8
30+
- image_name: openhpc-extra-RL8
2931
source_image_name_key: RL8 # key into environments/.stackhpc/terraform/cluster_image.auto.tfvars.json
30-
inventory_groups: doca
31-
- image_name: openhpc-doca-RL9
32+
inventory_groups: doca,cuda
33+
volume_size: 30 # needed for cuda
34+
- image_name: openhpc-extra-RL9
3235
source_image_name_key: RL9
33-
inventory_groups: doca
36+
inventory_groups: doca,cuda
37+
volume_size: 30 # needed for cuda
3438
env:
3539
ANSIBLE_FORCE_COLOR: True
3640
OS_CLOUD: openstack
@@ -95,6 +99,7 @@ jobs:
9599
-var "source_image_name=${{ fromJSON(env.FAT_IMAGES)['cluster_image'][matrix.build.source_image_name_key] }}" \
96100
-var "image_name=${{ matrix.build.image_name }}" \
97101
-var "inventory_groups=${{ matrix.build.inventory_groups }}" \
102+
-var "volume_size=${{ matrix.build.volume_size }}" \
98103
openstack.pkr.hcl
99104
100105
- name: Get created image names from manifest

.github/workflows/fatimage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ jobs:
3838
matrix: # build RL8, RL9
3939
build:
4040
- image_name: openhpc-RL8
41-
source_image_name: Rocky-8-GenericCloud-Base-8.9-20231119.0.x86_64.qcow2
41+
source_image_name: Rocky-8-GenericCloud-Base-8.10-20240528.0.x86_64.qcow2
4242
inventory_groups: control,compute,login,update
4343
- image_name: openhpc-RL9
44-
source_image_name: Rocky-9-GenericCloud-Base-9.4-20240523.0.x86_64.qcow2
44+
source_image_name: Rocky-9-GenericCloud-Base-9.5-20241118.0.x86_64.qcow2
4545
inventory_groups: control,compute,login,update
4646
env:
4747
ANSIBLE_FORCE_COLOR: True

.github/workflows/nightlybuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
matrix: # build RL8, RL9
2626
build:
2727
- image_name: rocky-latest-RL8
28-
source_image_name: Rocky-8-GenericCloud-Base-8.9-20231119.0.x86_64.qcow2
28+
source_image_name: Rocky-8-GenericCloud-Base-8.10-20240528.0.x86_64.qcow2
2929
inventory_groups: update
3030
- image_name: rocky-latest-RL9
3131
source_image_name: Rocky-9-GenericCloud-Base-9.4-20240523.0.x86_64.qcow2

.github/workflows/trivyscan.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v2
2727

28+
- name: Override CI_CLOUD if PR label is present
29+
if: ${{ github.event_name == 'pull_request' }}
30+
run: |
31+
# Iterate over the labels
32+
labels=$(echo '${{ toJSON(github.event.pull_request.labels) }}' | jq -r '.[].name')
33+
echo $labels
34+
for label in $labels; do
35+
if [[ $label == CI_CLOUD=* ]]; then
36+
# Extract the value after 'CI_CLOUD='
37+
CI_CLOUD_OVERRIDE=${label#CI_CLOUD=}
38+
echo "CI_CLOUD=${CI_CLOUD_OVERRIDE}" >> $GITHUB_ENV
39+
fi
40+
done
41+
2842
- name: Record settings for CI cloud
2943
run: |
3044
echo CI_CLOUD: ${{ env.CI_CLOUD }}

ansible/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ roles/*
5858
!roles/squid/**
5959
!roles/tuned/
6060
!roles/tuned/**
61+
!roles/compute_init/
62+
!roles/compute_init/**
6163
!roles/k3s/
6264
!roles/k3s/**
6365
!roles/k9s/

ansible/adhoc/sync-pulp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
vars:
77
pulp_site_target_arch: "x86_64"
88
pulp_site_target_distribution: "rocky"
9-
pulp_site_target_distribution_version: "9.4"
9+
pulp_site_target_distribution_version: "9.5"
1010
pulp_site_target_distribution_version_major: "9"

ansible/bootstrap.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
ansible.builtin.include_role:
123123
name: dnf_repos
124124
tasks_from: set_repos.yml
125-
when: ansible_distribution_major_version == "9" #TODO update role once RL8 config decided
126125

127126
# --- tasks after here require access to package repos ---
128127
- hosts: squid

ansible/cleanup.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,4 @@
6666
slurm-ohpc: "{{ ansible_facts.packages['slurm-ohpc'].0.version | default('-') }}"
6767

6868
- name: Show image summary
69-
debug:
70-
var: image_info
69+
command: cat /var/lib/image/image.json

ansible/disable-repos.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
ansible.builtin.include_role:
66
name: dnf_repos
77
tasks_from: disable_repos.yml
8-
when: ansible_distribution_major_version == "9" #TODO update role once RL8 config decided

ansible/extras.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
gather_facts: yes
2525
tags: cuda
2626
tasks:
27-
- import_role:
27+
- include_role:
2828
name: cuda
29+
tasks_from: "{{ 'runtime.yml' if appliances_mode == 'configure' else 'install.yml' }}"
2930

3031
- name: Persist hostkeys across rebuilds
3132
# Must be after filesystems.yml (for storage)
@@ -37,10 +38,32 @@
3738
- import_role:
3839
name: persist_hostkeys
3940

41+
42+
- name: Setup NFS export for compute node configuration
43+
hosts: compute_init:!builder
44+
# NB: has to be after eeesi and os-manila-mount
45+
tags: compute_init
46+
become: yes
47+
name: Export hostvars
48+
tasks:
49+
- include_role:
50+
name: compute_init
51+
tasks_from: export.yml
52+
4053
- name: Install k9s
4154
become: yes
4255
hosts: k9s
4356
tags: k9s
4457
tasks:
4558
- import_role:
4659
name: k9s
60+
61+
- hosts: extra_packages
62+
become: yes
63+
tags:
64+
- extra_packages
65+
tasks:
66+
- name: Install additional packages
67+
dnf:
68+
name: "{{ appliances_extra_packages }}"
69+
when: appliances_mode != 'configure' or appliances_extra_packages_during_configure

0 commit comments

Comments
 (0)