summaryrefslogtreecommitdiff
path: root/roles/install-custom-packages-wrapper
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2021-03-18 17:51:00 +0200
committerzsdc <taras@vyos.io>2021-03-18 17:51:00 +0200
commitc3cd4a20671b5a1313b5eb8e534fd8d1cf67db9f (patch)
tree577c07b3d85f531ce6704e367c4a29f6e9a2427e /roles/install-custom-packages-wrapper
parentc084415cff751d488d1460e58203ade538aea754 (diff)
downloadvyos-vm-images-c3cd4a20671b5a1313b5eb8e534fd8d1cf67db9f.tar.gz
vyos-vm-images-c3cd4a20671b5a1313b5eb8e534fd8d1cf67db9f.zip
Multiple build improvements
- 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.
Diffstat (limited to 'roles/install-custom-packages-wrapper')
-rw-r--r--roles/install-custom-packages-wrapper/tasks/main.yml4
-rw-r--r--roles/install-custom-packages-wrapper/tests/inventory2
-rw-r--r--roles/install-custom-packages-wrapper/tests/test.yml4
3 files changed, 10 insertions, 0 deletions
diff --git a/roles/install-custom-packages-wrapper/tasks/main.yml b/roles/install-custom-packages-wrapper/tasks/main.yml
new file mode 100644
index 0000000..b67f73c
--- /dev/null
+++ b/roles/install-custom-packages-wrapper/tasks/main.yml
@@ -0,0 +1,4 @@
+- name: Check if we need to install custom packages
+ include_role:
+ name: install-custom-packages
+ when: custom_packages is defined
diff --git a/roles/install-custom-packages-wrapper/tests/inventory b/roles/install-custom-packages-wrapper/tests/inventory
new file mode 100644
index 0000000..878877b
--- /dev/null
+++ b/roles/install-custom-packages-wrapper/tests/inventory
@@ -0,0 +1,2 @@
+localhost
+
diff --git a/roles/install-custom-packages-wrapper/tests/test.yml b/roles/install-custom-packages-wrapper/tests/test.yml
new file mode 100644
index 0000000..085b15c
--- /dev/null
+++ b/roles/install-custom-packages-wrapper/tests/test.yml
@@ -0,0 +1,4 @@
+---
+- hosts: localhost
+ roles:
+ - install-custom-packages-wrapper