summaryrefslogtreecommitdiff
path: root/worker-subplot.vmdb
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-04-08 11:58:29 +0300
committerLars Wirzenius <liw@liw.fi>2020-04-08 11:58:29 +0300
commit1981433f6bc348800994be7f83dde7edc6e70a16 (patch)
tree1a153eb3a5cffd6be8a2b4c9bf816a46bf9970b4 /worker-subplot.vmdb
parentbfa6e29d4b6f6c9690e8619bb95615a94eabd733 (diff)
downloadick-contractor-1981433f6bc348800994be7f83dde7edc6e70a16.tar.gz
Add: VM and build specs for Subplot, vmdb2
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: /