2424 zone : us-central1-a
2525
2626 image_build_machine_type : n2d-standard-16
27- build_from_image_family : hpc-rocky-linux-8
27+ # Rocky 8: hpc-rocky-linux-8
28+ # Rocky 9: hpc-rocky-linux-9
29+ build_from_image_family : hpc-rocky-linux-9
2830 build_from_image_project : cloud-hpc-image-public
2931 build_from_git_ref : 6.12.1
3032 built_image_family : my-custom-slurm
@@ -49,15 +51,17 @@ deployment_groups:
4951 content : |
5052 #!/bin/bash
5153 set -e -o pipefail
52- # Slurm build on Rocky8 will upgrade to python3.12 as part of build
53- dnf install -y python3.12 python3.12-pip
54- alternatives --set python3 /usr/bin/python3.12
55- python3 -m pip install pip --upgrade
56- python3 -m pip install ansible==8.7.0
57- python3 -m pip install selinux
54+ # Slurm build will install and set python3.12 as the default python3
55+ dnf install -y python3.12 python3.12-pip perl-ExtUtils-MakeMaker perl-devel
56+ python3.12 -m pip install pip --upgrade
57+ python3.12 -m pip install ansible==8.7.0
5858 export PATH=/usr/local/bin:$PATH
5959 ansible --version
60- ansible-galaxy role install googlecloudplatform.google_cloud_ops_agents
60+ n=0
61+ until [ "$n" -ge 3 ] || ansible-galaxy role install googlecloudplatform.google_cloud_ops_agents; do
62+ ((n=n+1))
63+ sleep 5
64+ done
6165 - type : data
6266 destination : /var/tmp/slurm_vars.json
6367 content : |
@@ -67,7 +71,8 @@ deployment_groups:
6771 "nvidia_version": "latest",
6872 "install_ompi": true,
6973 "install_lustre": false,
70- "install_gcsfuse": true
74+ "install_gcsfuse": true,
75+ "monitoring_agent": "cloud-ops"
7176 }
7277 - type : shell
7378 destination : install_slurm.sh
0 commit comments