summaryrefslogtreecommitdiff
path: root/roles
AgeCommit message (Collapse)Author
2024-02-27Fix the "Unsupported element 'Reservation'" Error in VMware OVALorenzo Biosa
2024-02-19Add EFI boot VM config if parttable_type=gpt is set (#47)Lorenzo Biosa
2024-01-10Merge pull request #30 from sfinke0/currentViacheslav Hletenko
iso_local file gets overridden
2024-01-08ansible remove legacy shell ars warningViacheslav Hletenko
On the newest systems like Debian12 the asnible shell args: warn is legacy It cause of ``` TASK [install-grub : Mount and bind /dev /proc /sys and /mnt/wroot/boot to /mnt/inst_root] ********************************************************************************************** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (ansible.legacy.command) module: warn. Supported parameters include: _raw_params, _uses_shell, argv, chdir, creates, executable, removes, stdin, stdin_add_newline, strip_empty_ends."} ``` Delete args: warn
2023-12-28Added `without_login` optionzsdc
This option will completely drop `system login` section from the configuration.
2023-12-27Added `copy-custom-files` role.zsdc
Sometimes we need to add extra files, like configurations. This role allows to copy them into the installation directory.
2022-12-01cloud init install force yes to avoid apt errorsAndrii Andrieiev
2022-10-13Revert "Small fixes for integration with Ansible Tower"Andrii
2022-08-19force apt getAndrii Andrieiev
2022-08-18allow expired release fileAndrii Andrieiev
2022-08-18path fixAndrii Andrieiev
2022-04-24Fix: the iso_local file gets overridden when the src and dst file checksums ↵carazzim0
do not match: https://github.com/ansible/ansible/issues/64016
2022-04-19T4278: Remove aufs modprobeOlivier Lemasle
Since commit d6532ad9f6d6317, overlayfs is used instead of aufs. It is then safe to remove the aufs modprobe.
2022-04-10T4278: Fix config templateOlivier Lemasle
The configuration template roles/install-config/templates/config.boot.j2 has been updated in commit db1b4f2079a for libvirt provider. However, variables enable_dhcp and enable_ssh are not declared except in playbook vagrant-libvirt.yml, which causes an error when using another playbook. This commit adds a default value in role "install-config", to fix this issue.
2022-03-16T4278: Fix vagrant box for libvirt providerYuya Kusakabe
2022-03-16T4278: Use overlayfs instead of aufsYuya Kusakabe
2022-03-16T4278: Remove ISO verification, because rolling image doesn't have GPG keyYuya Kusakabe
2022-03-11T4298: fix ansible group name and remove obsolete empty commandhakwerk
After commit 680a2b4 ("fix errors in custom package install") an empty "command:" remained.
2021-07-22Added 1MB offset to disk image (#21)zdc
Added 1MB offset before the first partition. This is required by some platforms, for example Aure, to validate an image.
2021-06-28fix errors in custom package installKim
2021-06-28add ability to rebuild an ISOKim
2021-06-11Updated vmware build playbooks (#18)Kim
* Add debian version variables. Removed compression flag from ovftool command * Updated vmware playbook to be able to generate a simple OVA without properties and set the vmware hardware based on debian version configured to support debian 10 guests. * Update the default time servers to the VyOS time servers. * Add rescue option if the play fails to unmount filesystems.
2021-04-06Fixes for Cloud-init, code optimizationzsdc
- Cleaned up APT configuration code. - Added ifupdown to Cloud-init install. This is required for all datasources that fetch data from remote hosts. - Fixed error that stops playbook if the `custom_debs` directory is empty and `-e custom_packages=true` is used.
2021-03-18Multiple build improvementszsdc
- Removed `empty_config` option. The config should be now always empty because Cloud-init adds required parts dynamically at the first boot. - Added ability to include any additional packages to the image, from list or deb files. - Moved common resources for multiple tasks from tasks folder to `files` and `templates` on the root folder. - Make `trim` actually works. Before this, it actually was a no-op, because RAW image mounted without the `discard` option cannot be trimmed. This significantly reduced the size of images with any additional packages inside, for example with Cloud-init. - Fixed APT repository paths, according to the new structure of `dev.packages.vyos.net`. - Added proper build repository for VyOS 1.3. It used the wrong `current` repo when should be `equuleus` now. - Removed unused `boot/grub/device.map.j2` template. - Deleted a secondary console option from the `grub.cfg.j2` template. According to testing an active console is only the latest listed, so it seems that there is no sense to keep there two items.
2021-03-15Added partition table type select option (MBR/GPT/hybrid)zsdc
Since some of the build target platforms do not support hybrid partition table and require only MBR (AWS AMI), was added option that allows selecting a partition table type: ``` -e parrtable_type=type ``` where `type` can be one of: `mbr`, `gpt`, `hybrid`. Default value is `hybrid`.
2021-01-23Fixed ISO download taskzsdc
The current listing of the https://downloads.vyos.io/?dir=rolling/current/amd64 is not compatible with the old parser. Also, now it is not necessary to search for the latest image anymore - it has always the same static URL. Therefore, the download page parser was removed and the download task was modified to download an ISO from a permanent URL.
2020-10-08Don't fail 'dmsetup remove' step when kpartx correctly detaches devicesqxmips
2020-10-08added metadata to use the roles in requirements.ymltempqxmips
2020-10-08minor fixescreate with ansible
2020-10-08minor fixescreate with ansible
2020-05-26Fixes for the images building processzsdc
- Fixed GRUB installation on UEFI hosts. On UEFI machines GRUB will try to install EFI version by default, so we need to set `--target` on i386-pc version too; - Fixed /dev/mapper devices unmounting, removing, and loopback detach. `kpartx -d` does not detach devices from `/dev/mapper` at least in a testing environment (Debian Buster inside Docker). That why we need to run `dmsetup remove` directly for this. The same with a loopback device. If not do this, resources will be busy and all builds except the first one may fail; - Deleted hybrid MBR creating task. It has a wrong syntax and does not work, and it looks like it is needless anyway.
2020-04-29Build BIOS/UEFI Hybrid Imageskroy
2020-04-23Added option to install guest agentszsdc
Supported agents: - open-vm-tools (`vmware` option) - qemu-guest-agent (`qemu` option)
2020-04-22Added option to create an image with empty configzsdc
2020-04-20Restored ability to build an OVA imagezsdc
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
2020-03-17Replaced deletion of cc_vyos by disabling modules in configzsdc
2020-03-13Fixed conditions for creating PXE archivezsdc
2020-02-28Added option to exclude `cc_vyos` from Cloud-initzsdc
When Cloud-init metadata is not available this module can break configuration procedure or overwrite options, assigned via User-Data.
2020-02-27Added /boot/ directory to the squashfs image for PXEzsdc
With /boot/ directory it is possible not only run VyOS in-memory but also install it via PXE too in a native way
2020-02-26Fixes and additions in QEMU image buildingzsdc
* Fixed deleting APT lists from a cache to decrease resulting image size * Added option for creating an archive with files required for boot via PXE * Added option for keeping default user when creating an image with Cloud-init
2020-02-20QEMU image build improvementszsdc
* 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
2018-10-26vmware: add ovf:transport to VirtualHardwareSectionYuya Kusakabe
2018-10-25Fix ovfYuya Kusakabe
2018-10-25vmware: add cloud-init customization to ovfYuya Kusakabe
2018-10-25Add cloud-init to QEMU/VMware/Hyper-V imagesmasterYuya Kusakabe
2018-07-03Add release-vagrant-libvirt-box roleYuya Kusakabe
2018-06-28Add roles/install-open-vmdkYuya Kusakabe
2018-06-28Cleanup playbookYuya Kusakabe
2018-06-22Fix vagrant-libvirt release taskYuya Kusakabe
2018-06-22Fix qemu image nameYuya Kusakabe