summaryrefslogtreecommitdiffstats
path: root/jjb/joid
diff options
context:
space:
mode:
authorDavid Blaisonneau <david.blaisonneau@orange.com>2016-01-29 11:10:38 +0100
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2016-01-29 13:07:51 +0000
commit4a1eb3410d6480a41e24bcfc24332f0215ed9a67 (patch)
tree9ca5d1b04eeab902f876d1396635f0c9bf9dd586 /jjb/joid
parent55c9b07355f973820438651bd6b215ad47152fe7 (diff)
joid: remove ceph_disk_controllers param and correct ext-net name replace
Change-Id: I86a4b8164b3d371ff7b4e8e340f7ae924c52f70c Signed-off-by: David Blaisonneau <david.blaisonneau@orange.com>
Diffstat (limited to 'jjb/joid')
-rw-r--r--jjb/joid/joid-deploy.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/jjb/joid/joid-deploy.sh b/jjb/joid/joid-deploy.sh
index b2b0ebb4b..59ba01588 100644
--- a/jjb/joid/joid-deploy.sh
+++ b/jjb/joid/joid-deploy.sh
@@ -131,19 +131,12 @@ sed -i -- "s/admin-password: openstack/admin-password: $OS_ADMIN_PASSWORD/" $SRC
if [ -n "$EXTNET_NAME" ]; then
echo "------ Set openstack default network ------"
- sed -i -- "s/\"neutron-external-network\": ext_net/\"neutron-external-network\": $EXTNET_NAME/" $SRCBUNDLE
+ sed -i -- "s/neutron-external-network: ext_net/neutron-external-network: $EXTNET_NAME/" $SRCBUNDLE
fi
echo "------ Set ceph disks ------"
-CEPH_DISKS_CONTROLLERS=${CEPH_DISKS_CONTROLLERS:-}
-if [ -z "$CEPH_DISKS_CONTROLLERS" ]; then
- CEPH_DISKS_CONTROLLERS=$CEPH_DISKS
-fi
-
#Find the first line of osd-devices to change the one for ceph, then the other for ceph-osd
-CEPH_DEV_LINE=$(grep -nr osd-devices $SRCBUNDLE |head -n1|cut -d: -f1)
-sed -i -- "${CEPH_DEV_LINE}s@osd-devices: /srv@osd-devices: $CEPH_DISKS@" $SRCBUNDLE
-sed -i -- "s@osd-devices: /srv@osd-devices: $CEPH_DISKS_CONTROLLERS@" $SRCBUNDLE
+sed -i -- "s@osd-devices: /srv@osd-devices: $CEPH_DISKS@" $SRCBUNDLE
sed -i -r -- "s/^(\s+osd-reformat: )'no'/\1'$CEPH_REFORMAT'/" $SRCBUNDLE
##