Fixing cloud-config file in hackfest_simplecharm_vnf 84/6084/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 8 May 2018 16:28:46 +0000 (18:28 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 8 May 2018 16:28:46 +0000 (18:28 +0200)
Change-Id: I506813b5fb4878a3873ca4aab86d7112c907b5a4
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
descriptor-packages/nsd/hackfest_simplecharm_ns/hackfest_simplecharm_nsd.yaml
descriptor-packages/vnfd/hackfest_simplecharm_vnf/cloud_init/cloud-config.txt
descriptor-packages/vnfd/hackfest_simplecharm_vnf/hackfest_simplecharm_vnfd.yaml

index a85b2cb..aebed0a 100644 (file)
@@ -12,9 +12,9 @@ nsd:nsd-catalog:
         -   vnfd-id-ref: hackfest-simplecharm-vnf
             member-vnf-index: '2'
         vld:
-        -   id: mgmt
-            name: mgmt
-            short-name: mgmt
+        -   id: mgmtnet
+            name: mgmtnet
+            short-name: mgmtnet
             type: ELAN
             mgmt-network: 'true'
             vim-network-name: mgmt
@@ -36,3 +36,4 @@ nsd:nsd-catalog:
             -   vnfd-id-ref: hackfest-simplecharm-vnf
                 member-vnf-index-ref: '2'
                 vnfd-connection-point-ref: vnf-data
+
index 2140ee0..f6c1b9d 100755 (executable)
@@ -1,4 +1,13 @@
-#cloud-config\r
-password: osm4u\r
-chpasswd: { expire: False }\r
-ssh_pwauth: True\r
+#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
+
index c75101d..9c6f095 100644 (file)
@@ -103,3 +103,4 @@ vnfd:vnfd-catalog:
                 -   name: filename
                     data-type: STRING
                     default-value: '/home/ubuntu/touched'
+