From 18435239b186f5d31552a91bfca7476610285f91 Mon Sep 17 00:00:00 2001 From: "Jingzhao.Ni" Date: Wed, 26 Jun 2019 19:00:10 +0800 Subject: [PATCH] Remove useless software when installing OS In k8-nosdn-nofeature-noha.yml files, there is a list of software which are not essential for IEC prjects, it was removed for accelerating VM deployment speed. Signed-off-by: Jingzhao.Ni Change-Id: Ie74a63e565bd560deea4f2bb6e70d7384d65d476 --- jjb/iec/iec-compass-deploy.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jjb/iec/iec-compass-deploy.sh b/jjb/iec/iec-compass-deploy.sh index dca5a15..b5e0c58 100755 --- a/jjb/iec/iec-compass-deploy.sh +++ b/jjb/iec/iec-compass-deploy.sh @@ -6,7 +6,11 @@ cd compass4nfv # Create 3 virtual machine echo -e " - name: host3\n roles:\n - kube_node" >> deploy/conf/vm_environment/k8-nosdn-nofeature-noha.yml # Remove useless code -sed -i "33,90d" deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml +# The ansible-kubernetes.yml file contains the list of softwares which will +# be installed on VM. But for IEC projects, some parts are not essnetial. So +# useless part will be removed. +# Delete some contents from line 28 to end. +sed -i '28,$d' deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml export ADAPTER_OS_PATTERN='(?i)ubuntu-16.04.*arm.*' export OS_VERSION="xenial" -- 2.16.6