dca5a15496af4ef2da8a414f04f87706ed335971
[ci-management.git] / jjb / iec / iec-compass-deploy.sh
1 #!/bin/bash
2 set -e
3
4 cd compass4nfv
5
6 # Create 3 virtual machine
7 echo -e "  - name: host3\n    roles:\n      - kube_node" >> deploy/conf/vm_environment/k8-nosdn-nofeature-noha.yml
8 # Remove useless code
9 sed -i "33,90d" deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml
10
11 export ADAPTER_OS_PATTERN='(?i)ubuntu-16.04.*arm.*'
12 export OS_VERSION="xenial"
13 export KUBERNETES_VERSION="v1.13.0"
14
15 export DHA="deploy/conf/vm_environment/k8-nosdn-nofeature-noha.yml"
16 export NETWORK="deploy/conf/vm_environment/network.yml"
17 export VIRT_NUMBER=3 VIRT_CPUS=4 VIRT_MEM=12288 VIRT_DISK=50G
18
19 ./deploy.sh
20
21 echo "Compass Deploy successful"
22 exit 0