summaryrefslogtreecommitdiff
path: root/minimal.vmdb
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-12-08 14:05:37 +0200
committerLars Wirzenius <liw@liw.fi>2019-12-08 14:05:37 +0200
commit737f12b296d046a6da5775c111a655e2d1585b03 (patch)
tree45c9bd7a316fb4f1d8a06f9fc9c3256e006f375a /minimal.vmdb
parent5f6ea36d16e071a3e7541cfef17403f72a33f66c (diff)
parente64b84d370cafef334ceddfab75b0d3ea63ec47f (diff)
downloadbase-image-specs-737f12b296d046a6da5775c111a655e2d1585b03.tar.gz
Merge branch 'liw/sid'
Diffstat (limited to 'minimal.vmdb')
-rw-r--r--minimal.vmdb46
1 files changed, 46 insertions, 0 deletions
diff --git a/minimal.vmdb b/minimal.vmdb
new file mode 100644
index 0000000..3a30e31
--- /dev/null
+++ b/minimal.vmdb
@@ -0,0 +1,46 @@
+# A vmdb2 image specification file for a minimal VM image that can be
+# administered via Ansible. Root access directly via ssh.
+
+steps:
+ - mkimg: "{{ output }}"
+ size: 4G
+
+ - mklabel: msdos
+ device: "{{ output }}"
+
+ - mkpart: primary
+ device: "{{ output }}"
+ start: 0%
+ end: 100%
+ tag: /
+
+ - kpartx: "{{ output }}"
+
+ - mkfs: ext4
+ partition: /
+
+ - mount: /
+
+ - unpack-rootfs: /
+
+ - debootstrap: buster
+ mirror: http://deb.debian.org/debian
+ target: /
+ unless: rootfs_unpacked
+
+ - apt: install
+ packages:
+ - linux-image-amd64
+ - python
+ - ssh
+ tag: /
+ unless: rootfs_unpacked
+
+ - cache-rootfs: /
+ unless: rootfs_unpacked
+
+ - ansible: /
+ playbook: minimal.yml
+
+ - grub: bios
+ tag: /