Skip to content

Commit

Permalink
default_disk variable
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Sep 27, 2024
1 parent 1719e99 commit f56e074
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agent-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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] }}
Expand Down
1 change: 1 addition & 0 deletions plans/kcli_plan_infra_default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ memory: 32768
ctlplanes: 3
ctlplane_numcpus:
ctlplane_memory:
default_disk: sda
workers: 0
worker_numcpus:
worker_memory:
Expand Down
2 changes: 1 addition & 1 deletion ztp/scripts/siteconfig.sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f56e074

Please sign in to comment.