summaryrefslogtreecommitdiffstats
path: root/jjb/container4nfv/arm64/deploy-cni.sh
blob: 9afb98048713528f50f7a8f2551ed2f30733dc50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash -e

cd container4nfv/src/arm/cni-deploy

DEPLOY_SCENARIO={scenario}

virtualenv .venv
source .venv/bin/activate
pip install ansible==2.6.1

ansible-playbook -i inventory/inventory.cfg deploy.yml --tags flannel,multus

if [ "$DEPLOY_SCENARIO" == "k8-sriov-nofeature-noha" ]; then
    ansible-playbook -i inventory/inventory.cfg deploy.yml --tags sriov
elif [ "$DEPLOY_SCENARIO" == "k8-vpp-nofeature-noha" ]; then
    ansible-playbook -i inventory/inventory.cfg deploy.yml --tags vhost-vpp
fi