summaryrefslogtreecommitdiffstats
path: root/ci/01-deploybundle.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-06-08 09:46:07 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-06-09 08:06:56 -0500
commitc386b37766ddc8864fb674887573984d4fbe16ce (patch)
tree412c38c5a5efcad87f7daaed4d82edbd81fb2f2c /ci/01-deploybundle.sh
parentac30ba09418bd15ecf9f08c0eda9f2bc376f0930 (diff)
added integration with congress charm.
Change-Id: Iabdc6e2641653103d7e406c1d7488c3f4406084b Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/01-deploybundle.sh')
-rwxr-xr-xci/01-deploybundle.sh12
1 files changed, 2 insertions, 10 deletions
diff --git a/ci/01-deploybundle.sh b/ci/01-deploybundle.sh
index 7addbce2..bf9784f4 100755
--- a/ci/01-deploybundle.sh
+++ b/ci/01-deploybundle.sh
@@ -8,8 +8,7 @@ set -ex
cp $4/fetch-charms.sh ./fetch-charms.sh
#modify the ubuntu series wants to deploy
sed -i -- "s|distro=trusty|distro=$6|g" ./fetch-charms.sh
- sh ./fetch-charms.sh $6
-
+ ./fetch-charms.sh $6
case "$1" in
'nonha' )
@@ -31,24 +30,17 @@ esac
#read the value from deployment.yaml
if [ -e ~/.juju/deployment.yaml ]; then
-
cp ~/.juju/deployment.yaml ./deployment.yaml
-
- if [ -e ~/.juju/deployment.yaml ]; then
+ if [ -e ~/.juju/deployconfig.yaml ]; then
cp ~/.juju/deployconfig.yaml ./deployconfig.yaml
-
extport=`grep "ext-port" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //' | tr ',' ' '`
sed --i "s@#ext-port: \"eth1\"@ext-port: \"$extport\"@g" ./bundles.yaml
-
datanet=`grep "dataNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`
-
if [ "$datanet" != "''" ]; then
sed -i -- "s@#os-data-network: 10.4.8.0/21@os-data-network: $datanet@g" ./bundles.yaml
fi
-
admnet=`grep "admNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`
sed --i "s@10.4.1.1@$admnet@g" ./bundles.yaml
-
cephdisk=`grep "disk" deployconfig.yaml | cut -d ':' -f 2 | sed -e 's/ //'`
sed --i "s@osd-devices: /srv@osd-devices: $cephdisk@g" ./bundles.yaml
fi