pulumi-templates/vm-ansible/templates/user-data.jinja

25 lines
482 B
Plaintext
Raw Permalink Normal View History

#cloud-config
resize_rootfs: true
users:
2022-08-20 01:49:13 +02:00
- name: {{ username }}
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 }}"
{% endfor %}
2022-08-20 01:49:13 +02:00
hashed_passwd: {{ password }}
ssh_pwauth: true
disable_root: false
chpasswd:
expire: false
list: |
2022-08-20 01:49:13 +02:00
root:{{ password }}
syntaxerrormmm:{{ password }}
#packages:
# - qemu-guest-agent
#power_state:
# delay: now
# mode: reboot