| tierno | 36c0b17 | 2017-01-12 18:32:28 +0100 | [diff] [blame] | 1 | ## |
| 2 | # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U. |
| 3 | # This file is part of openmano |
| 4 | # All Rights Reserved. |
| 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 7 | # not use this file except in compliance with the License. You may obtain |
| 8 | # a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 14 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 15 | # License for the specific language governing permissions and limitations |
| 16 | # under the License. |
| 17 | # |
| 18 | # For those usages not covered by the Apache License, Version 2.0 please |
| 19 | # contact with: nfvlabs@tid.es |
| 20 | ## |
| 21 | |
| 22 | --- |
| 23 | schema_version: "0.2" |
| 24 | vnf: |
| 25 | name: linux-cloud-init |
| 26 | description: Single-VM VNF with a traditional cloud VM based on generic Linux OS |
| 27 | external-connections: |
| 28 | - name: eth0 |
| tierno | 551e532 | 2017-01-19 16:16:26 +0100 | [diff] [blame] | 29 | type: mgmt |
| tierno | 36c0b17 | 2017-01-12 18:32:28 +0100 | [diff] [blame] | 30 | description: General purpose interface |
| 31 | VNFC: linux-VM |
| 32 | local_iface_name: eth0 |
| 33 | VNFC: |
| 34 | - name: linux-VM |
| 35 | description: Generic Linux Virtual Machine |
| 36 | #Copy the image to a compute path and edit this path |
| 37 | image name: ubuntu16.04 |
| 38 | vcpus: 1 # Only for traditional cloud VMs. Number of virtual CPUs (oversubscription is allowed). |
| 39 | ram: 2048 # Only for traditional cloud VMs. Memory in MBytes (not from hugepages, oversubscription is allowed) |
| 40 | disk: 20 |
| 41 | bridge-ifaces: |
| 42 | - name: eth0 |
| 43 | vpci: "0000:00:11.0" |
| 44 | numas: [] |
| 45 | boot-data: |
| 46 | key-pairs: |
| 47 | - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCy2w9GHMKKNkpCmrDK2ovc3XBYDETuLWwaW24S+feHhLBQiZlzh3gSQoINlA+2ycM9zYbxl4BGzEzpTVyCQFZv5PidG4m6ox7LR+KYkDcITMyjsVuQJKDvt6oZvRt6KbChcCi0n2JJD/oUiJbBFagDBlRslbaFI2mmqmhLlJ5TLDtmYxzBLpjuX4m4tv+pdmQVfg7DYHsoy0hllhjtcDlt1nn05WgWYRTu7mfQTWfVTavu+OjIX3e0WN6NW7yIBWZcE/Q9lC0II3W7PZDE3QaT55se4SPIO2JTdqsx6XGbekdG1n6adlduOI27sOU5m4doiyJ8554yVbuDB/z5lRBD alfonso.tiernosepulveda@telefonica.com |
| 48 | users: |
| 49 | - name: atierno |
| 50 | key-pairs: |
| 51 | - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCy2w9GHMKKNkpCmrDK2ovc3XBYDETuLWwaW24S+feHhLBQiZlzh3gSQoINlA+2ycM9zYbxl4BGzEzpTVyCQFZv5PidG4m6ox7LR+KYkDcITMyjsVuQJKDvt6oZvRt6KbChcCi0n2JJD/oUiJbBFagDBlRslbaFI2mmqmhLlJ5TLDtmYxzBLpjuX4m4tv+pdmQVfg7DYHsoy0hllhjtcDlt1nn05WgWYRTu7mfQTWfVTavu+OjIX3e0WN6NW7yIBWZcE/Q9lC0II3W7PZDE3QaT55se4SPIO2JTdqsx6XGbekdG1n6adlduOI27sOU5m4doiyJ8554yVbuDB/z5lRBD alfonso.tiernosepulveda@telefonica.com |
| 52 | boot-data-drive: true |
| 53 | config-files: |
| 54 | - content: | |
| 55 | auto enp0s3 |
| 56 | iface enp0s3 inet dhcp |
| 57 | dest: /etc/network/interfaces.d/enp0s3.cfg |
| 58 | permissions: '0644' |
| 59 | owner: root:root |
| 60 | - content: | |
| 61 | #! /bin/bash |
| 62 | ls -al >> /var/log/osm.log |
| 63 | dest: /etc/rc.local |
| 64 | permissions: '0755' |
| 65 | - content: "file content" |
| 66 | dest: /etc/test_delete |
| 67 | |