From 79ff9f34a9e6ccdc1ca33fe58ff6b0bb565b22ac Mon Sep 17 00:00:00 2001 From: ting wu Date: Thu, 3 May 2018 12:28:06 +0200 Subject: [maas] Adopt maas.machines.storage Replace MAAS CLI set_disk_layout with the new maas.machines.storage state JIRA: FUEL-364 Change-Id: I4d8cd9f473c5386ee7b32ad378ca1e02989233ca Signed-off-by: ting wu (cherry picked from commit 96019123adad087bc0d744a6785ceebb7b21476d) --- .../classes/cluster/mcp-pike-common-ha/infra/maas_pdf.yml.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mcp/reclass/classes/cluster/mcp-pike-common-ha') diff --git a/mcp/reclass/classes/cluster/mcp-pike-common-ha/infra/maas_pdf.yml.j2 b/mcp/reclass/classes/cluster/mcp-pike-common-ha/infra/maas_pdf.yml.j2 index 335b9c747..986bb060e 100644 --- a/mcp/reclass/classes/cluster/mcp-pike-common-ha/infra/maas_pdf.yml.j2 +++ b/mcp/reclass/classes/cluster/mcp-pike-common-ha/infra/maas_pdf.yml.j2 @@ -80,5 +80,13 @@ parameters: architecture: {{ node.node.arch | dpkg_arch }}/generic distro_series: xenial hwe_kernel: ${_param:hwe_kernel} + {%- if loop.index0 >= node_roles.index('cmp001') %} + disk_layout: + type: lvm + root_device: sda + volume_group: vgroot + volume_name: lvroot + volume_size: 100 + {%- endif %} {%- endif %} {%- endfor %} -- cgit 1.2.3-korg