Update for Swarm Bay quickstart docs

Updated quickstart guide to fix the bugs reported in bug 1587638
Including missing TLS env variable, missing command parameters on
ca-sign ca-show, and updated DOCKER_HOST env variable setup.

Change-Id: Iaa0157cd0032d8b74d0c4b67ff293a56a1b97012
Closes-Bug: #1587638
This commit is contained in:
Jaycen Grant
2016-05-31 06:55:17 -07:00
parent b8c3307663
commit 6e39cbb231

View File

@@ -560,12 +560,17 @@ Run the openssl 'req' command to generate the CSR.::
Now that you have your client CSR use the Magnum CLI to get it signed and also Now that you have your client CSR use the Magnum CLI to get it signed and also
download the signing cert.:: download the signing cert.::
magnum ca-sign swarmbay client.csr > cert.pem magnum ca-sign --bay swarmbay --csr client.csr > cert.pem
magnum ca-show swarmbay > ca.pem magnum ca-show --bay swarmbay > ca.pem
Set the correct host to use. This env var is consumed by docker.:: Set the CLI to use TLS . This env var is consumed by docker.::
DOCKER_HOST=$(magnum bay-show swarmbay | awk '/ api_address /{print $4}') export DOCKER_TLS_VERIFY="1"
Set the correct host to use which is the public ip address of swarm API server
endpoint. This env var is consumed by docker.::
export DOCKER_HOST=$(magnum bay-show swarmbay | awk '/ api_address /{print substr($4,9)}')
Next we will create a container in this swarm bay. This container will ping the Next we will create a container in this swarm bay. This container will ping the
address 8.8.8.8 four times:: address 8.8.8.8 four times::