aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorDave McCowan <dmccowan@cisco.com>2016-02-12 12:37:13 -0500
committerDave McCowan <dmccowan@cisco.com>2016-02-15 09:48:58 -0500
commit1cedf77f19ccd0b01791553016fde77748a2ce74 (patch)
treec555ad33b6e2095f571dfbef9c3d6c5803f7aed9 /dev
parent9376751d3972e6e96743672260735c605d54622f (diff)
downloadkolla-1cedf77f19ccd0b01791553016fde77748a2ce74.tar.gz
kolla-1cedf77f19ccd0b01791553016fde77748a2ce74.zip
Use variables to specify http or https when constructing URLs
To allow for TLS to protect the service endpoints, the protocol in the URLs for the endpoints will be either http or https. This patch removes the hardcoded values of http and replaces them with variables that can be adjusted accordingly in future patches. Change-Id: Ibca6f8aac09c65115d1ac9957410e7f81ac7671e Partially-implements: blueprint ssl-kolla
Diffstat (limited to 'dev')
-rw-r--r--dev/vagrant/centos-bootstrap.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev/vagrant/centos-bootstrap.sh b/dev/vagrant/centos-bootstrap.sh
index bac332768..83d10c074 100644
--- a/dev/vagrant/centos-bootstrap.sh
+++ b/dev/vagrant/centos-bootstrap.sh
@@ -19,6 +19,7 @@ else
SUPPORT_NODE=support01
fi
REGISTRY=operator.local:${REGISTRY_PORT}
+ADMIN_PROTOCOL="http"
# Install common packages and do some prepwork.
function prep_work {
@@ -118,7 +119,7 @@ EOF
# The openrc file.
cat > ~vagrant/openrc <<EOF
-export OS_AUTH_URL="http://${SUPPORT_NODE}:35357/v3"
+export OS_AUTH_URL="$(ADMIN_PROTOCOL)://${SUPPORT_NODE}:35357/v3"
export OS_USERNAME=admin
export OS_PASSWORD=password
export OS_TENANT_NAME=admin