diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-12-08 12:53:18 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-12-08 12:53:18 +0200 |
commit | 4e020d116adb9b8433405eb2f6a3eab1facad933 (patch) | |
tree | dea2589f8719602a03023d79b5fc1b38244fcebe /minimal.vmdb | |
parent | 3584828db6d427dd49052d6ee6905fbf2320a5e7 (diff) | |
download | base-image-specs-4e020d116adb9b8433405eb2f6a3eab1facad933.tar.gz |
Add: spec file for a minimal, Ansible-managed VM
Diffstat (limited to 'minimal.vmdb')
-rw-r--r-- | minimal.vmdb | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/minimal.vmdb b/minimal.vmdb new file mode 100644 index 0000000..bc915d6 --- /dev/null +++ b/minimal.vmdb @@ -0,0 +1,47 @@ +# 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: rootfs + console: serial |