This commit is contained in:
2021-05-20 20:08:54 +02:00
commit bc72c32c23
13 changed files with 668 additions and 0 deletions

27
config/cloud_init.yml Normal file
View File

@@ -0,0 +1,27 @@
#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"