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

25 lines
506 B
Plaintext
Raw Normal View History

#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