terraform-libvirt-ubuntu-ex.../simple/cloud_init.cfg

34 lines
707 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 finally up, after $UPTIME seconds"