From da19895f2a5b50921da02fd80447dc0ef4cddd14 Mon Sep 17 00:00:00 2001 From: Wayne Warren <wayne.warren.s@gmail.com> Date: Fri, 31 Aug 2018 22:11:22 -0500 Subject: [PATCH] Make root partition size configurable With the previous commits in this series, this can now be configured on a per pxe server group basis; but default to all VMs with the same root partition size works fine for me. Change-Id: Idb82466ca887466d3babe2da6998b057e99f676c --- multi-node-aio/playbooks/group_vars/all.yml | 1 + multi-node-aio/playbooks/pxe/configs/debian/vm.config.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/multi-node-aio/playbooks/group_vars/all.yml b/multi-node-aio/playbooks/group_vars/all.yml index 9e2afcfb..d144bfed 100644 --- a/multi-node-aio/playbooks/group_vars/all.yml +++ b/multi-node-aio/playbooks/group_vars/all.yml @@ -14,6 +14,7 @@ default_interface: "{{ default_network | default('eth0') }}" default_vm_image: "{{ default_image | default('ubuntu-16.04-amd64') }}" default_vm_storage: "{{ vm_disk_size | default(92160) }}" +default_vm_root_disk_size: 8192 default_vm_disk_mode: lvm default_vm_disk_vg: vg01 default_acng_bind_address: 0.0.0.0 diff --git a/multi-node-aio/playbooks/pxe/configs/debian/vm.config.j2 b/multi-node-aio/playbooks/pxe/configs/debian/vm.config.j2 index c21cc5f1..a258b131 100644 --- a/multi-node-aio/playbooks/pxe/configs/debian/vm.config.j2 +++ b/multi-node-aio/playbooks/pxe/configs/debian/vm.config.j2 @@ -121,7 +121,7 @@ d-i partman-auto/expert_recipe string \ lv_name{ swap00 } \ method{ swap } format{ } \ . \ - 8192 1 16384 ext4 \ + {{ default_vm_root_disk_size }} 1 16384 ext4 \ $lvmok{ } in_vg{ vmvg00 } \ lv_name{ root00 } \ method{ format } format{ } \