25 lines
506 B
Django/Jinja
25 lines
506 B
Django/Jinja
#cloud-config
|
|
resize_rootfs: true
|
|
users:
|
|
- name: {{ conf.username }}
|
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
|
groups: users, admin
|
|
shell: /bin/bash
|
|
ssh_authorized_keys:
|
|
{% for key in conf.sshkeys %}
|
|
- {{ item }}
|
|
{% endfor %}
|
|
hashed_passwd: {{ conf.password }}
|
|
ssh_pwauth: true
|
|
disable_root: false
|
|
chpasswd:
|
|
expire: false
|
|
list: |
|
|
root:{{ conf.password }}
|
|
syntaxerrormmm:{{ conf.password }}
|
|
#packages:
|
|
# - qemu-guest-agent
|
|
#power_state:
|
|
# delay: now
|
|
# mode: reboot
|