export ANSIBLE_HOST_KEY_CHECKING=False
# subject of the certificate
export XCI_SSL_SUBJECT=${XCI_SSL_SUBJECT:-"/C=US/ST=California/L=San Francisco/O=IT/CN=xci.releng.opnfv.org"}
-export OPNFV_SCENARIO=${OPNFV_SCENARIO:-"os-nosdn-nofeature"}
+export DEPLOY_SCENARIO=${DEPLOY_SCENARIO:-"os-nosdn-nofeature"}
# - name: Include foobar role
# include_role:
# name: "foobar"
-# when: OPNFV_SCENARIO == "foobar"
+# when: DEPLOY_SCENARIO == "foobar"
- name: Prepare everything to run the os-nosdn-nofeature scenario
include_role:
name: "os-nosdn-nofeature"
- when: OPNFV_SCENARIO == 'os-nosdn-nofeature'
+ when: DEPLOY_SCENARIO == 'os-nosdn-nofeature'
- name: Prepare everything to run the os-odl-nofeature scenario
include_role:
name: "os-odl-nofeature"
- when: OPNFV_SCENARIO == 'os-odl-nofeature'
+ when: DEPLOY_SCENARIO == 'os-odl-nofeature'
- name: Prepare everything to run the os-odl-sfc scenario
include_role:
name: "os-odl-sfc"
- when: OPNFV_SCENARIO == 'os-odl-sfc'
+ when: DEPLOY_SCENARIO == 'os-odl-sfc'
loop_control:
label: "{{ item.item.scenario }}"
- - name: Determine if selected {{ OPNFV_SCENARIO }} scenario can be deployed
+ - name: Determine if selected {{ DEPLOY_SCENARIO }} scenario can be deployed
set_fact:
deploy_scenario_on_flavor: XCI_FLAVOR in item.flavors
- when: OPNFV_SCENARIO == item.scenario
+ when: DEPLOY_SCENARIO == item.scenario
with_items: "{{ scenarios }}"
loop_control:
label: "{{ item.scenario }}"
- - name: Fail if {{ XCI_FLAVOR }} is not supported in {{ OPNFV_SCENARIO }}
+ - name: Fail if {{ XCI_FLAVOR }} is not supported in {{ DEPLOY_SCENARIO }}
fail:
msg:
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- - ERROR! The {{ OPNFV_SCENARIO }} scenario does not support the {{ XCI_FLAVOR }}
+ - ERROR! The {{ DEPLOY_SCENARIO }} scenario does not support the {{ XCI_FLAVOR }}
- ''
- This is a great chance for you to contribute to XCI ;-)
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#!/bin/bash
-if [[ $OPNFV_SCENARIO == "os-odl-nofeature" ]] && [[ $XCI_FLAVOR == "ha" ]]; then
+if [[ $DEPLOY_SCENARIO == "os-odl-nofeature" ]] && [[ $XCI_FLAVOR == "ha" ]]; then
export VM_MEMORY_SIZE=20480
-elif [[ $OPNFV_SCENARIO == "os-odl-nofeature" ]]; then
+elif [[ $DEPLOY_SCENARIO == "os-odl-nofeature" ]]; then
export VM_MEMORY_SIZE=16384
-fi
\ No newline at end of file
+fi
XCI_SSL_SUBJECT: "{{ lookup('env', 'XCI_SSL_SUBJECT') }}"
XCI_CEPH_ENABLED: "{{ lookup('env', 'XCI_CEPH_ENABLED') }}"
RUN_TEMPEST: "{{ lookup('env', 'RUN_TEMPEST') }}"
-OPNFV_SCENARIO: "{{ lookup('env','OPNFV_SCENARIO') }}"
+DEPLOY_SCENARIO: "{{ lookup('env','DEPLOY_SCENARIO') }}"
# install docker on opnfv host only if we are running as part of CI
opnfv_required_packages:
echo "opnfv/releng-xci version: $(git rev-parse HEAD)"
echo "openstack/bifrost version: $OPENSTACK_BIFROST_VERSION"
echo "openstack/openstack-ansible version: $OPENSTACK_OSA_VERSION"
-echo "OPNFV scenario: $OPNFV_SCENARIO"
+echo "OPNFV scenario: $DEPLOY_SCENARIO"
echo "-------------------------------------------------------------------------"
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Get scenario variables overrides
#-------------------------------------------------------------------------------
-if [[ -f $XCI_SCENARIOS_CACHE/${OPNFV_SCENARIO:-_no_scenario_}/xci_overrides ]]; then
- source $XCI_SCENARIOS_CACHE/$OPNFV_SCENARIO/xci_overrides
+if [[ -f $XCI_SCENARIOS_CACHE/${DEPLOY_SCENARIO:-_no_scenario_}/xci_overrides ]]; then
+ source $XCI_SCENARIOS_CACHE/$DEPLOY_SCENARIO/xci_overrides
fi
#-------------------------------------------------------------------------------