We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02c0676 commit 49dcba2Copy full SHA for 49dcba2
cookbooks/aws-parallelcluster-slurm/templates/default/slurm/head_node/update_munge_key.sh.erb
@@ -15,6 +15,13 @@ MUNGE_USER="<%= @munge_user %>"
15
MUNGE_GROUP="<%= @munge_group %>"
16
CLUSTER_USER="<%= @cluster_user %>"
17
18
+# Check compute fleet status
19
+compute_fleet_status=$(get-compute-fleet-status.sh)
20
+if ! echo "$compute_fleet_status" | grep -q '"status": "STOPPED"'; then
21
+ echo "Compute fleet is not stopped. Please stop it before updating the munge key."
22
+ exit 1
23
+fi
24
+
25
# If SECRET_ARN is provided, fetch the munge key from Secrets Manager
26
if [ -n "${SECRET_ARN}" ]; then
27
echo "Fetching munge key from AWS Secrets Manager: ${SECRET_ARN}"
0 commit comments