From d1fe516938e5e4d79178aa57f0317631f5f6ffbd Mon Sep 17 00:00:00 2001 From: Ryan Gard Date: Tue, 19 Feb 2019 15:00:22 -0800 Subject: [PATCH] ASC-1655 Enable Ceph Scenario Update "run_mnaio_playbook" function to support Ceph as a backend when depoying if the "RE_JOB_SCENARIO" is set to "ceph". --- gating/mnaio_vars.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gating/mnaio_vars.sh b/gating/mnaio_vars.sh index 4c3e44865..624a41962 100644 --- a/gating/mnaio_vars.sh +++ b/gating/mnaio_vars.sh @@ -51,6 +51,11 @@ if [[ "${RPCO_IMAGES_AVAILABLE}" == "false" ]] || [[ "${RE_JOB_ACTION}" == "depl export DEPLOY_VMS="true" fi +# Enable Ceph deployment if specified by the job scenario. +if [[ "${RE_JOB_SCENARIO}" == "ceph" ]] ]]; then + export ENABLE_CEPH_STORAGE="true" +fi + # # Non-MNAIO RPC Specific settings # @@ -95,6 +100,7 @@ function run_mnaio_playbook() { -e container_tech=${CONTAINER_TECH:-"lxc"} \ -e ipxe_kernel_base_url=${IPXE_KERNEL_BASE_URL:-"http://boot.ipxe.org"} \ -e ipxe_path_url=${IPXE_PATH_URL:-""} ${MNAIO_ANSIBLE_PARAMETERS} \ + -e enable_ceph_storage=${ENABLE_CEPH_STORAGE:-"false"} \ --force-handlers \ --flush-cache \ $@