From e147d6922ebc5cac901c16ccc31b2b83c6847032 Mon Sep 17 00:00:00 2001 From: limon Date: Wed, 3 Jun 2020 14:16:56 +0200 Subject: [PATCH 1/4] Update VNF descriptor to use ubuntu16.04 image instead of US1604 --- hackfest_multivdu_vnf/hackfest_multivdu_vnfd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hackfest_multivdu_vnf/hackfest_multivdu_vnfd.yaml b/hackfest_multivdu_vnf/hackfest_multivdu_vnfd.yaml index dc3563c3..e3fd65cc 100644 --- a/hackfest_multivdu_vnf/hackfest_multivdu_vnfd.yaml +++ b/hackfest_multivdu_vnf/hackfest_multivdu_vnfd.yaml @@ -21,7 +21,7 @@ vnfd-catalog: vdu: - id: mgmtVM name: mgmtVM - image: US1604 + image: ubuntu16.04 count: 1 vm-flavor: vcpu-count: 1 @@ -44,7 +44,7 @@ vnfd-catalog: - id: mgmtVM-internal - id: dataVM name: dataVM - image: US1604 + image: ubuntu16.04 count: 1 vm-flavor: vcpu-count: 1 -- GitLab From 0b112a6b7ac5ec14691901379c82d518aaf386e0 Mon Sep 17 00:00:00 2001 From: limon Date: Thu, 4 Jun 2020 16:59:58 +0200 Subject: [PATCH 2/4] Add clout-init to set ubuntu password --- hackfest_multivdu_vnf/cloud_init/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 hackfest_multivdu_vnf/cloud_init/.gitkeep diff --git a/hackfest_multivdu_vnf/cloud_init/.gitkeep b/hackfest_multivdu_vnf/cloud_init/.gitkeep new file mode 100644 index 00000000..e69de29b -- GitLab From 003adc2a4cdcdd8d5fd8100508e3fbb844024743 Mon Sep 17 00:00:00 2001 From: limon Date: Thu, 4 Jun 2020 17:00:56 +0200 Subject: [PATCH 3/4] Add clout-init to set ubuntu password --- hackfest_multivdu_vnf/cloud_init/cloud-config.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hackfest_multivdu_vnf/cloud_init/cloud-config.txt diff --git a/hackfest_multivdu_vnf/cloud_init/cloud-config.txt b/hackfest_multivdu_vnf/cloud_init/cloud-config.txt new file mode 100644 index 00000000..e22d345c --- /dev/null +++ b/hackfest_multivdu_vnf/cloud_init/cloud-config.txt @@ -0,0 +1,12 @@ +#cloud-config +password: osm4u +chpasswd: { expire: False } +ssh_pwauth: True + +write_files: +- content: | + # My new helloworld file + + owner: root:root + permissions: '0644' + path: /root/helloworld.txt -- GitLab From e51b46e112690bc18d048cfb90558e7764f91aec Mon Sep 17 00:00:00 2001 From: limon Date: Thu, 4 Jun 2020 17:01:57 +0200 Subject: [PATCH 4/4] Add clout-init to set ubuntu password --- hackfest_multivdu_vnf/hackfest_multivdu_vnfd.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hackfest_multivdu_vnf/hackfest_multivdu_vnfd.yaml b/hackfest_multivdu_vnf/hackfest_multivdu_vnfd.yaml index e3fd65cc..37df7201 100644 --- a/hackfest_multivdu_vnf/hackfest_multivdu_vnfd.yaml +++ b/hackfest_multivdu_vnf/hackfest_multivdu_vnfd.yaml @@ -42,6 +42,7 @@ vnfd-catalog: internal-connection-point-ref: mgmtVM-internal internal-connection-point: - id: mgmtVM-internal + cloud-init-file: cloud-config.txt - id: dataVM name: dataVM image: ubuntu16.04 @@ -65,4 +66,5 @@ vnfd-catalog: external-connection-point-ref: vnf-data internal-connection-point: - id: dataVM-internal + cloud-init-file: cloud-config.txt -- GitLab