From afca529c30e486e834ad5e98f18bfba5f40710ac Mon Sep 17 00:00:00 2001 From: zsdc Date: Mon, 20 Apr 2020 23:45:01 +0300 Subject: Restored ability to build an OVA image Also: - actualized some variables - added more objects to cleanup to not keep garbage after playbook run - added variable to select default boot console in GRUB --- .../vmware-ova/templates/vyos_vmware_image.ovf.j2 | 293 +++++++++++++-------- 1 file changed, 184 insertions(+), 109 deletions(-) (limited to 'roles/vmware-ova/templates') diff --git a/roles/vmware-ova/templates/vyos_vmware_image.ovf.j2 b/roles/vmware-ova/templates/vyos_vmware_image.ovf.j2 index c3d6145..7f58678 100644 --- a/roles/vmware-ova/templates/vyos_vmware_image.ovf.j2 +++ b/roles/vmware-ova/templates/vyos_vmware_image.ovf.j2 @@ -1,148 +1,223 @@ - + + + The list of logical networks + + WAN network + + + LAN network + + + + List of profiles + + + Minimal hardware profile - 1 vCPU, 512 MB RAM + + + + Medium hardware profile - 4 vCPUs, 16 GB RAM + + + + Large hardware profile - 8 vCPUs, 32 GB RAM + + + + Supported IP assignment schemes + Virtual disk information - + - - The list of logical networks - - The VM Network network - - - + A virtual machine - vyos - - The kind of installed guest operating system + + VyOS is a Linux-based network operating system that provides software-based network routing, firewall, and VPN functionality. + VyOS + Sentrium S.L. + {{ vyos_version }} + https://www.vyos.io + https://sentrium.io/ + + Appliance user Settings + + + The password for the appliance 'vyos' account. Passwords must be at least 8 characters in length. + + + + The public ssh key for the appliance 'vyos' account. + + Appliance IPv4 Network Settings (WAN interface) + + + The host name for this virtual machine. + + + + The IPv4 address. Leave blank if DHCP is desired. + + + + The IPv4 netmask or prefix for this interface. Leave blank if DHCP is desired. + + + + Default gateway address. Leave blank if DHCP is desired. + + + + The domain name server IP Addresses for this VM (comma separated). Leave blank if DHCP is desired. + + + + NTP servers for this VM (comma separated). Leave blank if DHCP is desired. + + Appliance API Settings + + + API key to access the VyOS api. If left blank the api wil not be enabled. + + + + API port to listen on for calls. Leave blank to keep it default '443'. + + + + Enable API debug logging + + + + User-Data, encoded with base64. + + + + VM specific properties + + + + + VyOS + + + The operating system installed + Debian GNU/Linux 8 (64-bit) - - Virtual hardware requirements + + Virtual Hardware Requirements Virtual Hardware Family 0 - vyos - vmx-09 + vmx-11 - + hertz * 10^6 - Number of Virtual CPUs - 1 virtual CPU(s) - 1 + Number of virtual CPUs + 1 virtual CPU + 1 3 1 - - byte * 2^30 + + hertz * 10^6 + Number of virtual CPUs + 4 virtual CPUs + 1 + 3 + 4 + + + hertz * 10^6 + Number of virtual CPUs + 8 virtual CPUs + 1 + 3 + 8 + + + byte * 2^20 Memory Size - 1GB of memory - 2 + 512 MB of memory + 2 4 - 1 + 512 + 512 + + + byte * 2^20 + Memory Size + 16 GB of memory + 2 + 4 + 16384 + 16384 + + + byte * 2^20 + Memory Size + 32 GB of memory + 2 + 4 + 32768 + 32768 - 0 - SCSI Controller - scsiController0 - 3 - lsilogic + 0 + SCSI Controller 0 - VMware Paravirtual SCSI + 3 + VirtualSCSI 6 - 1 - IDE Controller - ideController1 - 4 - 5 + 0 + disk0 + ovf:/disk/vmdisk1 + 4 + 3 + 17 - - true - serial0 - 5 - 21 - + + 0 + IDE Controller 0 + 5 + 5 - + 0 false - cdrom0 - 6 + CD/DVD Drive 1 + 6 5 15 - - 0 - disk0 - ovf:/disk/vmdisk1 + + 7 + true + WAN + NIC representing WAN + WAN 7 - 3 - 17 - - - 2 + vmxnet3 + 10 + + + 8 true - VM Network - VmxNet3 ethernet adapter on "VM Network" - ethernet0 + LAN + NIC representing LAN + LAN 8 - VmxNet3 + vmxnet3 10 - - - - false - video - 9 - 24 - - - false - vmci - 10 - vmware.vmci - 1 - + - - - - + - - VyOS is a Linux-based network operating system that provides software-based network routing, firewall, and VPN functionality. - VyOS - VyOS maintainers and contributors - {{ vyos_version }} - - - Specifies the instance id. This is required and used to determine if the machine should take "first boot" actions - - - Specifies the hostname for the appliance - - - - This field is optional, but indicates that the instance should 'seed' user-data and meta-data from the given url. If set to 'http://tinyurl.com/sm-' is given, meta-data will be pulled from http://tinyurl.com/sm-meta-data and user-data from http://tinyurl.com/sm-user-data. Leave this empty if you do not want to seed from a url. - - - - This field is optional, but indicates that the instance should populate the default user's 'authorized_keys' with this value - - - - In order to fit into a xml attribute, this value is base64 encoded . It will be decoded, and then processed normally as user-data. - - - - - If set, the default user's password will be set to this value to allow password based login. The password will be good for only a single login. If set to the string 'RANDOM' then a random password will be generated, and written to the console. - - - + \ No newline at end of file -- cgit v1.2.3