Add cloud init to Ubuntu VNF
authorchamarty <ravi.chamarty@riftio.com>
Tue, 17 Jan 2017 00:50:01 +0000 (00:50 +0000)
committerchamarty <ravi.chamarty@riftio.com>
Tue, 17 Jan 2017 00:50:01 +0000 (00:50 +0000)
Signed-off-by: chamarty <ravi.chamarty@riftio.com>
src/vnfd/ubuntu_xenial_vnf/cloud_init/cloud_init.cfg [new file with mode: 0644]
src/vnfd/ubuntu_xenial_vnf/ubuntu_xenial_vnfd.yaml

diff --git a/src/vnfd/ubuntu_xenial_vnf/cloud_init/cloud_init.cfg b/src/vnfd/ubuntu_xenial_vnf/cloud_init/cloud_init.cfg
new file mode 100644 (file)
index 0000000..d1c2188
--- /dev/null
@@ -0,0 +1,5 @@
+#cloud-config
+password: ubuntu
+chpasswd: { expire: False }
+ssh_pwauth: True
+
index 908dcb0..8fd61d9 100644 (file)
@@ -30,6 +30,9 @@ vnfd:vnfd-catalog:
             # Image including the full path
             image: '/mnt/powervault/virtualization/vnfs/demos/ubuntu/ubuntu-16.04.img'
 
+            # User-data injection
+            cloud-init-file: cloud_init.cfg
+
             external-interface:
             # Specify the external interfaces
             # There can be multiple interfaces defined