From 60ea27c7307e5ea98f4a02c57380b2cd418fac54 Mon Sep 17 00:00:00 2001 From: Helena Greebe Date: Tue, 13 Aug 2024 11:07:55 -0400 Subject: [PATCH] [ADC] Configure certificates for compute fleet manager --- .../files/isolated/iso-ca-bundle-config.sh | 4 +++- .../templates/default/slurm/fleet_status_manager_program.erb | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cookbooks/aws-parallelcluster-platform/files/isolated/iso-ca-bundle-config.sh b/cookbooks/aws-parallelcluster-platform/files/isolated/iso-ca-bundle-config.sh index dcfea4a557..e5fc6dd6bc 100644 --- a/cookbooks/aws-parallelcluster-platform/files/isolated/iso-ca-bundle-config.sh +++ b/cookbooks/aws-parallelcluster-platform/files/isolated/iso-ca-bundle-config.sh @@ -18,4 +18,6 @@ echo "export SSL_CERT_FILE=${AWS_CA_BUNDLE}" >> /etc/profile.d/aws-cli-default-c echo "Defaults env_keep += \"AWS_DEFAULT_REGION AWS_CA_BUNDLE REQUESTS_CA_BUNDLE SSL_CERT_FILE\"" > /etc/sudoers.d/pcluster-aws-cli-envkeep -source /etc/profile.d/aws-cli-default-config.sh \ No newline at end of file +source /etc/profile.d/aws-cli-default-config.sh + +sudo aws configure set ca_bundle "$CA_BUNDLE" \ No newline at end of file diff --git a/cookbooks/aws-parallelcluster-slurm/templates/default/slurm/fleet_status_manager_program.erb b/cookbooks/aws-parallelcluster-slurm/templates/default/slurm/fleet_status_manager_program.erb index fb9c3d8221..f5843ca570 100644 --- a/cookbooks/aws-parallelcluster-slurm/templates/default/slurm/fleet_status_manager_program.erb +++ b/cookbooks/aws-parallelcluster-slurm/templates/default/slurm/fleet_status_manager_program.erb @@ -1,2 +1,3 @@ #!/bin/bash +source /etc/profile.d/aws-cli-default-config.sh sudo -u <%= node['cluster']['cluster_admin_user'] %> <%= node_virtualenv_path %>/bin/slurm_fleet_status_manager "$@"