From 93b7a96d2e13c21d069fb7680b7c89dbbb4673a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Wed, 8 Dec 2021 17:05:03 +0000 Subject: roles/vmm: Generate disklabels for openbsd autoinstall --- roles/vmm/tasks/autoinstall_configuration.yml | 6 ++++++ roles/vmm/templates/disklabel.j2 | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 roles/vmm/templates/disklabel.j2 (limited to 'roles/vmm') diff --git a/roles/vmm/tasks/autoinstall_configuration.yml b/roles/vmm/tasks/autoinstall_configuration.yml index cd52a84..ee1b98b 100644 --- a/roles/vmm/tasks/autoinstall_configuration.yml +++ b/roles/vmm/tasks/autoinstall_configuration.yml @@ -23,6 +23,12 @@ template: <<: *generation_steps dest: "/var/www/htdocs/autoinstall/{{ item.lladdr }}-upgrade.conf" + +- name: generate disklabel file + template: + <<: *generation_steps + src: disklabel.j2 + dest: "{{ vmm_autoinstall_dir }}/{{ item.lladdr }}-disklabel.conf" when: item.image == "openbsd" loop: "{{ vmm_vms }}" diff --git a/roles/vmm/templates/disklabel.j2 b/roles/vmm/templates/disklabel.j2 new file mode 100644 index 0000000..f0c3443 --- /dev/null +++ b/roles/vmm/templates/disklabel.j2 @@ -0,0 +1,2 @@ +swap 2G +/ 2G-* -- cgit v1.2.3