34 lines
705 B
INI
34 lines
705 B
INI
#cloud-config
|
|
hostname: ${hostname}
|
|
fqdn: ${fqdn}
|
|
manage_etc_hosts: true
|
|
users:
|
|
- name: ubuntu
|
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
|
groups: users, admin
|
|
home: /home/ubuntu
|
|
shell: /bin/bash
|
|
lock_passwd: false
|
|
ssh-authorized-keys:
|
|
- ${file("id_rsa.pub")}
|
|
# only cert auth via ssh (console access can still login)
|
|
ssh_pwauth: false
|
|
disable_root: false
|
|
chpasswd:
|
|
list: |
|
|
ubuntu:linux
|
|
expire: False
|
|
packages:
|
|
- qemu-guest-agent
|
|
|
|
# test of writing content
|
|
write_files:
|
|
- content: |
|
|
The quick brown fox jumped
|
|
over the lazy dog
|
|
path: /root/test.txt
|
|
|
|
# written to /var/log/cloud-init-output.log
|
|
final_message: "The system is finall up, after $UPTIME seconds"
|
|
|