#cloud-config # vim: syntax=yaml # examples: # https://cloudinit.readthedocs.io/en/latest/topics/examples.html bootcmd: - echo 192.168.0.1 gw.homedns.xyz >> /etc/hosts runcmd: - [ ls, -l, / ] - [ sh, -xc, "echo $(date) ': hello world!'" ] ssh_pwauth: true disable_root: false chpasswd: list: | root:password expire: false package_update: true packages: ['qemu-guest-agent'] users: - name: ubuntu sudo: ALL=(ALL) NOPASSWD:ALL groups: users, admin home: /home/ubuntu shell: /bin/bash lock_passwd: false ssh-authorized-keys: - ssh-rsa AAAA ...your-public-ssh-key-goes-here... user@host final_message: "The system is finally up, after $UPTIME seconds"