summaryrefslogtreecommitdiffstats
path: root/ci/odl/juju-deployer/scripts/openstack.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-10-03 07:32:26 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-10-03 15:50:02 -0500
commit4b367d124bece258eb520c7878de835b37a01abb (patch)
treeead2520d31a7367c1c342ea44f368b6e9f980589 /ci/odl/juju-deployer/scripts/openstack.sh
parent8ef7d630c0b868770e77a333171819af133d6308 (diff)
removing the stalled filed
Remove the stalled files and update the labconfig for juniper lab in opnfv. Change-Id: Ib734a9b8cd608e70cbaae007a60caa8d3c14fdf3 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/odl/juju-deployer/scripts/openstack.sh')
-rwxr-xr-xci/odl/juju-deployer/scripts/openstack.sh36
1 files changed, 0 insertions, 36 deletions
diff --git a/ci/odl/juju-deployer/scripts/openstack.sh b/ci/odl/juju-deployer/scripts/openstack.sh
deleted file mode 100755
index e12ebbfd..00000000
--- a/ci/odl/juju-deployer/scripts/openstack.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh -ex
-
-configOpenrc()
-{
- cat <<-EOF
- export OS_USERNAME=$1
- export OS_PASSWORD=$2
- export OS_TENANT_NAME=$3
- export OS_AUTH_URL=$4
- export OS_REGION_NAME=$5
- EOF
-}
-
-unitAddress()
-{
- juju status | python -c "import yaml; import sys; print yaml.load(sys.stdin)[\"services\"][\"$1\"][\"units\"][\"$1/$2\"][\"public-address\"]" 2> /dev/null
-}
-
-unitMachine()
-{
- juju status | python -c "import yaml; import sys; print yaml.load(sys.stdin)[\"services\"][\"$1\"][\"units\"][\"$1/$2\"][\"machine\"]" 2> /dev/null
-}
-
-mkdir -m 0700 -p cloud
-controller_address=$(unitAddress keystone 0)
-configOpenrc admin openstack admin http://$controller_address:5000/v2.0 Canonical > cloud/admin-openrc
-chmod 0600 cloud/admin-openrc
-
-machine=$(unitMachine glance 0)
-juju scp glance.sh cloud/admin-openrc $machine:
-juju run --machine $machine ./glance.sh
-
-machine=$(unitMachine nova-cloud-controller 0)
-juju scp cloud-setup.sh cloud/admin-openrc ~/.ssh/id_rsa.pub $machine:
-juju run --machine $machine ./cloud-setup.sh
-