summaryrefslogtreecommitdiff
path: root/v-i.vmdb
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-08-13 22:22:02 +0300
committerLars Wirzenius <liw@liw.fi>2018-08-13 22:22:02 +0300
commit495e3c6cc60efb770a6b64ff02fc9ce6fc1e2e9b (patch)
treedb3629e7ceaa46fd883532a54e4911806f6a7974 /v-i.vmdb
downloadv-i-495e3c6cc60efb770a6b64ff02fc9ce6fc1e2e9b.tar.gz
Add: initial vmdb and the Ansible playbook it uses
This isn't ready yet, but it boots, and it configured network, and Finnish keyboard.
Diffstat (limited to 'v-i.vmdb')
-rw-r--r--v-i.vmdb82
1 files changed, 82 insertions, 0 deletions
diff --git a/v-i.vmdb b/v-i.vmdb
new file mode 100644
index 0000000..59dd57b
--- /dev/null
+++ b/v-i.vmdb
@@ -0,0 +1,82 @@
+# This is a vmdb2 input file that builds a bootable image that can run
+# vmdb2, using UEFI. This can be used to install Debian onto a real
+# system.
+
+steps:
+ - mkimg: "{{ output }}"
+ size: 4G
+
+ # - mklabel: gpt
+ # device: "{{ output }}"
+
+ # - mkpart: primary
+ # device: "{{ output }}"
+ # start: 0%
+ # end: 1G
+ # part-tag: efi-part
+
+ # - mkpart: primary
+ # device: "{{ output }}"
+ # start: 1G
+ # end: 100%
+ # part-tag: root-part
+
+ # - mkfs: vfat
+ # partition: efi-part
+
+ - mklabel: msdos
+ device: "{{ output }}"
+
+ - mkpart: primary
+ device: "{{ output }}"
+ start: 0%
+ end: 100%
+ part-tag: root-part
+
+ - mkfs: ext4
+ partition: root-part
+
+ - mount: root-part
+ fs-tag: root-fs
+
+ - unpack-rootfs: root-fs
+
+ - debootstrap: unstable
+ mirror: http://deb.debian.org/debian
+ target: root-fs
+ unless: rootfs_unpacked
+
+ - apt: install
+ packages:
+ - linux-image-amd64
+ fs-tag: root-fs
+ unless: rootfs_unpacked
+
+ - cache-rootfs: root-fs
+ unless: rootfs_unpacked
+
+ - apt: install
+ packages:
+ - python
+ - console-setup
+ - locales-all
+ - ifupdown
+ - vmdb2
+ - git
+ - ssh
+ - gnupg
+ - ansible
+ fs-tag: root-fs
+
+ - ansible: root-fs
+ playbook: v-i.yml
+
+ - grub: bios
+ root-fs: root-fs
+ root-part: root-part
+ device: "{{ output }}"
+
+ # - grub: uefi
+ # root-fs: root-fs
+ # root-part: root-part
+ # efi-part: efi-part