File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -142,8 +142,13 @@ set -x
142142
143143# Add the Vault CA to the trust store on the seed.
144144scp -oStrictHostKeyChecking=no $KAYOBE_CONFIG_PATH /environments/$KAYOBE_ENVIRONMENT /kolla/certificates/ca/vault.crt ${ ssh_user } @${ seed_addr } :
145- ssh -oStrictHostKeyChecking=no ${ ssh_user } @${ seed_addr } sudo cp vault.crt /etc/pki/ca-trust/source/anchors/OS-TLS-ROOT.crt
146- ssh -oStrictHostKeyChecking=no ${ ssh_user } @${ seed_addr } sudo update-ca-trust
145+ if [[ $( grep ' ^ID=' /etc/os-release | cut -d= -f2) == " ubuntu" ]]; then
146+ ssh -oStrictHostKeyChecking=no ${ ssh_user } @${ seed_addr } sudo cp vault.crt /usr/local/share/ca-certificates/OS-TLS-ROOT.crt
147+ ssh -oStrictHostKeyChecking=no ${ ssh_user } @${ seed_addr } sudo update-ca-certificates
148+ else
149+ ssh -oStrictHostKeyChecking=no ${ ssh_user } @${ seed_addr } sudo cp vault.crt /etc/pki/ca-trust/source/anchors/OS-TLS-ROOT.crt
150+ ssh -oStrictHostKeyChecking=no ${ ssh_user } @${ seed_addr } sudo update-ca-trust
151+ fi
147152
148153~ /src/openstack-config/tools/openstack-config
149154
You can’t perform that action at this time.
0 commit comments