diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-04-30 07:44:43 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-04-30 07:44:43 +0300 |
commit | 6c4004f6bda93a907dfd34132c73b433a369a8f9 (patch) | |
tree | 5d51b8280a256ccea580be840cb1eb62f80dbec0 | |
parent | 4d21f397b0e88e53f74a6c38e596da554ccee01b (diff) | |
download | vmdb2-6c4004f6bda93a907dfd34132c73b433a369a8f9.tar.gz |
ansible in base.vmdb
Sponsored-by: author
-rw-r--r-- | ansible.vmdb | 51 | ||||
-rw-r--r-- | base.vmdb | 5 | ||||
-rw-r--r-- | i386-uefi.vmdb | 59 | ||||
-rw-r--r-- | i386.vmdb | 56 |
4 files changed, 5 insertions, 166 deletions
diff --git a/ansible.vmdb b/ansible.vmdb deleted file mode 100644 index 0c1c0d0..0000000 --- a/ansible.vmdb +++ /dev/null @@ -1,51 +0,0 @@ -# This is a sample VMDB2 input file to specify a simple -# system that boots on a PC with BIOS. - -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 - fs-tag: / - unless: rootfs_unpacked - - - apt: install - packages: - - python3 - fs-tag: / - - - cache-rootfs: / - unless: rootfs_unpacked - - - ansible: / - playbook: ansible.yml - - - fstab: / - - - grub: bios - tag: / @@ -41,6 +41,8 @@ steps: variant: minbase target: / unless: rootfs_unpacked + include: + - python3 - virtual-filesystems: / @@ -49,6 +51,9 @@ steps: - fstab: / + - ansible: / + playbook: ansible.yml + - grub: uefi tag: / efi: efi diff --git a/i386-uefi.vmdb b/i386-uefi.vmdb deleted file mode 100644 index deb5d06..0000000 --- a/i386-uefi.vmdb +++ /dev/null @@ -1,59 +0,0 @@ -# This is a sample VMDB2 input file that specifies a simple system for -# an i386 machine that boots with UEFI. - -steps: - - mkimg: "{{ output }}" - size: 4G - - - mklabel: gpt - device: "{{ output }}" - - - mkpart: primary - device: "{{ output }}" - start: 0% - end: 1G - tag: efi - - - mkpart: primary - device: "{{ output }}" - start: 1G - end: 100% - tag: / - - - kpartx: "{{ output }}" - - - mkfs: vfat - partition: efi - - - mkfs: ext4 - partition: / - - - mount: / - - - virtual-filesystems: / - - - unpack-rootfs: / - - - debootstrap: buster - arch: i386 - mirror: http://deb.debian.org/debian - target: / - unless: rootfs_unpacked - - - apt: install - packages: - - linux-image-686-pae - fs-tag: / - unless: rootfs_unpacked - - - cache-rootfs: / - unless: rootfs_unpacked - - - chroot: / - shell: | - sed -i '/^root:[^:]*:/s//root::/' /etc/passwd - echo i386-uefi-vmdb2 > /etc/hostname - - - grub: uefi - tag: / - efi: efi diff --git a/i386.vmdb b/i386.vmdb deleted file mode 100644 index ae6529a..0000000 --- a/i386.vmdb +++ /dev/null @@ -1,56 +0,0 @@ -# This is a sample VMDB2 input file to specify a simple -# system that boots on a 32-bit PC with BIOS. - -steps: - - mkimg: "{{ output }}" - size: 4G - - - mklabel: msdos - device: "{{ output }}" - - - mkpart: primary - device: "{{ output }}" - start: 0% - end: 50% - tag: / - - - kpartx: "{{ output }}" - - - mkfs: ext4 - partition: / - - - mount: / - - - unpack-rootfs: / - - - debootstrap: buster - arch: i386 - mirror: http://deb.debian.org/debian - target: / - unless: rootfs_unpacked - - - apt: install - packages: - - linux-image-686-pae - tag: / - unless: rootfs_unpacked - - - cache-rootfs: / - unless: rootfs_unpacked - - - chroot: / - shell: | - echo i386 > /etc/hostname - apt -y install python3 parted - - - fstab: / - - - chroot: / - shell: | - sed -i 's,^root:[^:]*:,root::,' /etc/passwd - - - resize-rootfs: / - - - grub: bios - tag: / - quiet: false |