pulumi-templates/libvirt-ansible-python/cloud-init/user-data.jinja

25 lines
482 B
Django/Jinja

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