summaryrefslogtreecommitdiff
path: root/minimal.vmdb
diff options
context:
space:
mode:
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: /