#cloud-config
runcmd:
  - passwd -d root
  - sed -i -e '/^#\?PasswordAuthentication/s/^.*$/PasswordAuthentication yes/' /etc/ssh/sshd_config
  - sed -i -e '/^#\?PermitEmptyPasswords/s/^.*$/PermitEmptyPasswords yes/' /etc/ssh/sshd_config
  - sed -i -e '/^#\?PermitRootLogin/s/^.*$/PermitRootLogin yes/' /etc/ssh/sshd_config
  - rm -f /etc/ssh/sshd_config.d/60-cloudimg-settings.conf
  - systemctl restart ssh.service
  - mount LABEL=cidata /mnt
  - install /mnt/notify.service /etc/systemd/system
  - install /mnt/notify.py /usr/local/bin
  - umount /mnt
  - systemctl daemon-reload
  - systemctl enable --now notify.service
