Cambiamento posizione template basati su jinja.

This commit is contained in:
Emiliano Vavassori 2024-09-21 18:22:48 +02:00
parent 373adff418
commit 7a81d01461
4 changed files with 3 additions and 3 deletions

View file

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

View file

@ -0,0 +1,5 @@
---
version: 2
ethernets:
ens3:
dhcp4: true

View file

@ -0,0 +1,24 @@
#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