#cloud-config

users:
  # Allow logins via petri/petri for debugging.
  - name: petri
    passwd: "$6$EO8qjMcfYFra1zR8$ZHzeU29UoO49S3gJMivhgsP7farZgEbfOkKeXfswZeT7go1SpyPbL68whWCG5.YEdS4NeyPYYZYiLo5Fq4igV0"
    lock_passwd: false
    groups: users, admin

bootcmd:
  # Mount the crash dump folder for if things go wrong
  - [mkdir, -p, /crash]
  - [mount, LABEL=crashdump, /crash, -o, rw]
  # Disable snapd, which takes a long time to start and is not needed.
  - systemctl disable snapd.service snapd.apparmor snapd.seeded.service || true
  - systemctl mask snapd.service || true
