Fixing multiple issues.

This commit is contained in:
Emiliano Vavassori 2022-08-20 01:49:13 +02:00
parent 6267a7e843
commit 27e08ea2be
4 changed files with 10 additions and 9 deletions

View file

@ -1,2 +1,2 @@
instance-id: {{ conf.name }}
local-hostname: {{ conf.name }}
instance-id: {{ name }}
local-hostname: {{ name }}

View file

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