File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ export DOMAINSUFFIX=${DOMAINSUFFIX-$(hostname -d)}
47
47
# deployment related environment set by any stage and put to tf_stack_profile at the end
48
48
declare -A DEPLOYMENT_ENV=( \
49
49
[' AUTH_PASSWORD' ]=" $AUTH_PASSWORD " \
50
+ [' AUTH_URL' ]=' ' \
50
51
)
51
52
52
53
function build() {
@@ -200,6 +201,13 @@ function collect_deployment_env() {
200
201
sudo chmod -R a+r $openstack_deployer_dir /etc/kolla/ || /bin/true
201
202
cp $openstack_deployer_dir /etc/kolla/* $TF_CONFIG_DIR / || /bin/true
202
203
DEPLOYMENT_ENV[' OPENSTACK_CONTROLLER_NODES' ]=" $( echo $CONTROLLER_NODES | cut -d ' ' -f 1) "
204
+
205
+ local auth_ip=$( echo " $CONTROLLER_NODES " | tr ' ' ' ,' | cut -d ' ,' -f 1)
206
+ local proto=" http"
207
+ if [[ " ${SSL_ENABLE,,} " == ' true' ]] ; then
208
+ proto=" https"
209
+ fi
210
+ DEPLOYMENT_ENV[' OS_AUTH_URL' ]=" $proto ://$auth_ip :5000/v3"
203
211
fi
204
212
205
213
if ! is_after_stage ' wait' ; then
You can’t perform that action at this time.
0 commit comments