From 3f71c9b5f20ca5c1bcad65c738a45d663495baf3 Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Mon, 11 Jan 2016 09:57:27 +0100 Subject: joid: Set CEPH_DISKS_CONTROLLERS if unset Change-Id: I10d3d5853fda963adab1d3359b3415501b09a364 Signed-off-by: Fatih Degirmenci --- jjb/joid/joid-ci-jobs.yml | 2 +- jjb/joid/joid-deploy.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'jjb/joid') diff --git a/jjb/joid/joid-ci-jobs.yml b/jjb/joid/joid-ci-jobs.yml index 4a8b60db5..0eaa41590 100644 --- a/jjb/joid/joid-ci-jobs.yml +++ b/jjb/joid/joid-ci-jobs.yml @@ -156,7 +156,7 @@ cd $WORKSPACE/ci ./clean.sh - shell: - !include-raw ./joid-deploy.sh + !include-raw-escape: ./joid-deploy.sh ######################## # trigger macros diff --git a/jjb/joid/joid-deploy.sh b/jjb/joid/joid-deploy.sh index 53255a3ff..1348ca0be 100644 --- a/jjb/joid/joid-deploy.sh +++ b/jjb/joid/joid-deploy.sh @@ -73,9 +73,11 @@ echo "------ Set openstack password ------" sed -i -- "s/\"admin-password\": openstack/\"admin-password\": $OS_ADMIN_PASSWORD/" $SRCBUNDLE 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 -- cgit 1.2.3-korg