diff --git a/agent-config.yaml b/agent-config.yaml index 71a9780..02cc50c 100644 --- a/agent-config.yaml +++ b/agent-config.yaml @@ -45,7 +45,7 @@ hosts: wwn: "{{ host['wwn'] }}" {% else %} rootDeviceHints: - deviceName: "/dev/sda" + deviceName: "/dev/{{ default_disk|basename }}" {% endif %} interfaces: - macAddress: {{ baremetal_macs[loop.index0] }} diff --git a/plans/kcli_plan_infra_default.yml b/plans/kcli_plan_infra_default.yml index d7287ca..3498be1 100644 --- a/plans/kcli_plan_infra_default.yml +++ b/plans/kcli_plan_infra_default.yml @@ -30,6 +30,7 @@ memory: 32768 ctlplanes: 3 ctlplane_numcpus: ctlplane_memory: +default_disk: sda workers: 0 worker_numcpus: worker_memory: diff --git a/ztp/scripts/siteconfig.sample.yml b/ztp/scripts/siteconfig.sample.yml index acacf8f..6391661 100644 --- a/ztp/scripts/siteconfig.sample.yml +++ b/ztp/scripts/siteconfig.sample.yml @@ -122,7 +122,7 @@ spec: bootMACAddress: {{ mac }} bootMode: {{ 'UEFI' if spoke_uefi else 'legacy' }} rootDeviceHints: - deviceName: /dev/{{ node.disk|default('sda')|string|basename }} + deviceName: /dev/{{ node.disk|default(default_disk)|string|basename }} {% if 'ip' in node %} nodeNetwork: interfaces: