2022-08-20 01:29:44 +02:00
|
|
|
#cloud-config
|
|
|
|
resize_rootfs: true
|
|
|
|
users:
|
2022-08-20 01:49:13 +02:00
|
|
|
- name: {{ username }}
|
2022-08-20 01:29:44 +02:00
|
|
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
|
|
|
groups: users, admin
|
|
|
|
shell: /bin/bash
|
|
|
|
ssh_authorized_keys:
|
2022-08-20 01:49:13 +02:00
|
|
|
{% for key in sshkeys %}
|
|
|
|
- "{{ key }}"
|
2022-08-20 01:29:44 +02:00
|
|
|
{% endfor %}
|
2022-08-20 01:49:13 +02:00
|
|
|
hashed_passwd: {{ password }}
|
2022-08-20 01:29:44 +02:00
|
|
|
ssh_pwauth: true
|
|
|
|
disable_root: false
|
|
|
|
chpasswd:
|
|
|
|
expire: false
|
|
|
|
list: |
|
2022-08-20 01:49:13 +02:00
|
|
|
root:{{ password }}
|
|
|
|
syntaxerrormmm:{{ password }}
|
2022-08-20 01:29:44 +02:00
|
|
|
#packages:
|
|
|
|
# - qemu-guest-agent
|
|
|
|
#power_state:
|
|
|
|
# delay: now
|
|
|
|
# mode: reboot
|