diff options
author | zsdc <taras@vyos.io> | 2020-02-20 10:43:36 +0200 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2020-02-20 19:40:42 +0200 |
commit | 332dbe851c44543b69e516439baf203c9bebcadc (patch) | |
tree | 9eb724cd03ae10f659b9486b1005df0ffa2a4d42 /group_vars | |
parent | 88832a6324731f9357aa301adc70ef8448d6bc9f (diff) | |
download | vyos-vm-images-332dbe851c44543b69e516439baf203c9bebcadc.tar.gz vyos-vm-images-332dbe851c44543b69e516439baf203c9bebcadc.zip |
QEMU image build improvements
* Added missed package dependencies (for Debian 10 based builders)
* Added additional options, which can be passed to the playbook:
* iso_local - path to local ISO file
* disk_size - target disk image size
* cloud_init - enable or disable Cloud-init integration to an image
* cloud_init_ds - set custom list of data sources for Cloud-init
* Added a version number and Cloud-init mark to a QCOW2 image name
* Cloud-init installation procedure tuned to use packages from a proper one VyOS repository, according to VyOS and Debian version
* Added workaround for /etc/network/interfaces to allow Cloud-init initialize network in a native way
* Replaced default config file to Jinja2 template
* Fixed GRUB installation on UEFI builders - added target i386-pc
* Replaced GRUB configuration:
* enable both KVM and Serial console for all images (Serial by default)
* added password recovery option for all images
* added 5 seconds of a timeout to allow select proper menu entry
* fixed booting for 1.3 VyOS
* Added loop device detach after image build - allows to build images multiple times without exhausting loop device limit
* Added fstrim applying for image - theoretically, this may save some space
* Enabled compression for QCOW2 image - this reduces image size significantly
* Added RAW image deletion after conversion to more accurate cleanup
Diffstat (limited to 'group_vars')
-rw-r--r-- | group_vars/all.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/group_vars/all.yml b/group_vars/all.yml index 2e1c25b..f718626 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -1,7 +1,7 @@ ansible_host_key_checking: False vyos_iso_url: "" -vyos_iso_local: /tmp/vyos.iso +vyos_iso_local: "{{ iso_local | default('/tmp/vyos.iso') }}" vyos_key_url: http://packages.vyos.net/vyos-release.gpg vyos_key_local: /tmp/vyos-release.gpg @@ -12,7 +12,7 @@ vyos_write_root: /mnt/wroot vyos_read_root: /mnt/squashfs vyos_install_root: /mnt/inst_root -vyos_disk_size: 10 +vyos_disk_size: "{{ disk_size | default(10) }}" vyos_root_fstype: ext4 vyos_target_drive: "" |