From 96019123adad087bc0d744a6785ceebb7b21476d 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 --- .../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/infra/maas_pdf.yml.j2') 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 cff6d9b30..849f26124 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 @@ -28,5 +28,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