summaryrefslogtreecommitdiff
path: root/worker-subplot.vmdb
diff options
context:
space:
mode:
Diffstat (limited to 'worker-subplot.vmdb')
-rw-r--r--worker-subplot.vmdb46
1 files changed, 46 insertions, 0 deletions
diff --git a/worker-subplot.vmdb b/worker-subplot.vmdb
new file mode 100644
index 0000000..8f667e7
--- /dev/null
+++ b/worker-subplot.vmdb
@@ -0,0 +1,46 @@
+# An image for running the Ick contractor inner VM.
+
+steps:
+ - mkimg: "{{ output }}"
+ size: 10G
+
+ - 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
+ - python3
+ tag: /
+ unless: rootfs_unpacked
+
+ - cache-rootfs: /
+ unless: rootfs_unpacked
+
+ - fstab: /
+
+ - ansible: /
+ playbook: worker-subplot.yml
+
+ - grub: bios
+ tag: /