Skip to content

Commit

Permalink
Merge pull request #16 from stackhpc/cacert
Browse files Browse the repository at this point in the history
Use container's system CA trust store
  • Loading branch information
markgoddard authored Apr 15, 2024
2 parents a0f41d7 + cd5aec9 commit defe6b0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bin/rally-verify-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,16 @@ else
fi
set -x

unset OS_CACERT
if [[ -z "$(sudo ls -A /usr/local/share/ca-certificates)" ]]; then
# Assume that any CA certificate referenced in the openrc file will not be
# valid within the container.
unset OS_CACERT
else
# Use the container's system CA trust store. This allows for bind mounting a CA
# certificate under /usr/local/share/ca-certificates/.
sudo update-ca-certificates
export OS_CACERT=/etc/ssl/certs/ca-certificates.crt
fi

crudini --set ~/.rally/rally.conf DEFAULT openstack_client_http_timeout 300
crudini --set ~/.rally/rally.conf openstack flavor_ref_ram 128
Expand Down

0 comments on commit defe6b0

Please sign in to comment.