This commit is contained in:
2024-10-25 10:25:04 -04:00
parent 2f3f4a8d2c
commit 160ffca2ee
55 changed files with 1201 additions and 349 deletions

41
templates/user-data.j2 Normal file
View File

@@ -0,0 +1,41 @@
#cloud-config
hostname: {{ domain.name }}
create_hostname_file: true
fqdn: {{ domain.name }}.eom.dev
apt:
generate_mirrorlists: true
package_reboot_if_required: true
package_update: true
package_upgrade: true
packages: {{ domain.packages }}
users:
- name: eric
lock_passwd: True
gecos: Eric O'Neill Meehan
groups: [adm, audio, cdrom, dialout, dip, floppy, netdev, plugdev, sudo, video]
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
ssh_authorized_keys: {{ eric_ssh_keys }}
chpasswd:
expire: false
users:
- name: eric
type: text
password: 123abc
ssh_pwauth: false
growpart:
mode: auto
devices: ['/']
resize_rootfs:
type: 'growpart'
resizefs: true
{% if mounts is defined %}
mounts: {{ mounts }}
{% endif %}