Remove useless software when installing OS 59/1059/1
authorJingzhao.Ni <Jingzhao.Ni@arm.com>
Wed, 26 Jun 2019 11:00:10 +0000 (19:00 +0800)
committerJingzhao.Ni <Jingzhao.Ni@arm.com>
Wed, 26 Jun 2019 13:35:31 +0000 (21:35 +0800)
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 <Jingzhao.Ni@arm.com>
Change-Id: Ie74a63e565bd560deea4f2bb6e70d7384d65d476

jjb/iec/iec-compass-deploy.sh

index dca5a15..b5e0c58 100755 (executable)
@@ -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
 # 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"
 
 export ADAPTER_OS_PATTERN='(?i)ubuntu-16.04.*arm.*'
 export OS_VERSION="xenial"