Comment 1 for bug 1983041

Revision history for this message
Dan MacDonald (allcoms) wrote :

Here's my non-working attempt to do this with cloud-init. I rolled this config into a seed.iso using cloud-localds:

#cloud-config
autoinstall:
  version: 1
  identity:
    hostname: ubuntu-server
    password: "$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0"
    username: ubuntu

  disk_setup:
    /dev/sda:
      table_type: mbr
      layout: True
      overwrite: True

  fs_setup:
    - device: /dev/sda
      partition: 1
      filesystem: ext4

This config attempt is based on some examples I saw in the Disk setup section here:

https://cloudinit.readthedocs.io/en/latest/topics/examples.html

Maybe its just formatted wrong? I know how fussy YAML is.