Skip to content

Commit

Permalink
[ADC] Configure certificates for compute fleet manager
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Oct 16, 2024
1 parent 9069b31 commit 02ec700
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,12 @@ echo "export AWS_CA_BUNDLE=/etc/pki/${REGION}/certs/ca-bundle.pem" >> /etc/profi

echo "export AWS_DEFAULT_REGION=${REGION}" >> /etc/profile.d/aws-cli-default-config.sh

echo "Defaults env_keep += \"AWS_DEFAULT_REGION AWS_CA_BUNDLE\"" > /etc/sudoers.d/pcluster-aws-cli-envkeep
echo "export REQUESTS_CA_BUNDLE=${AWS_CA_BUNDLE}" >> /etc/profile.d/aws-cli-default-config.sh

echo "export SSL_CERT_FILE=${AWS_CA_BUNDLE}" >> /etc/profile.d/aws-cli-default-config.sh

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

sudo aws configure set ca_bundle "$CA_BUNDLE"
Original file line number Diff line number Diff line change
@@ -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 "$@"

0 comments on commit 02ec700

Please sign in to comment.