MAAS's default setting: Machine's default Network should be IP mode DHCP

from 3.6 (we don’t have an ETA for the release yet) you will be able to set the global config default_boot_interface_link_type.

For example you will be able to set default_boot_interface_link_type=DHCP and have all the interfaces configured to DHCP automatically after commissioning.

For the power configuration by heart I think you should be able to do this by creating a custom commissioning script that is executed AFTER the 30-maas-01-bmc-config and that

  • reads the env variable BMC_CONFIG_PATH
  • writes a yaml config like here.

If you are going to try this, please report here if it worked