Standardized hardware config on templates to use better CPU and disk types; Updated Ubuntu 22, Rocky 9 and Almalinux 9 post-install stuff

This commit is contained in:
2024-04-20 22:05:11 -04:00
parent 86b8e70740
commit cb410f3dc5
9 changed files with 42 additions and 46 deletions

View File

@ -1,24 +1,21 @@
#cloud-config
autoinstall:
version: 1
early-commands:
- systemctl stop ssh
locale: en_US.UTF-8
keyboard:
layout: us
network:
network:
version: 2
ethernets:
eth0:
dhcp4: yes
dhcp-identifier: mac
apt:
geoip: true
preserve_sources_list: false
primary:
- arches: [i386, amd64]
uri: "http://archive.ubuntu.com/ubuntu"
geoip: true
- arches: [i386, amd64]
uri: "http://archive.ubuntu.com/ubuntu"
storage:
layout:
name: lvm
@ -28,15 +25,20 @@ autoinstall:
username: xadmin
password: $6$8DdxHyrH6HfGZhDs$jEadYAMi3CTJivYgGjhG7S2C/ChZxv0w0L6AQ3Egn8K5xIA4OEqDngVfozfn.9kYxy.hWYpzwBE0qwytcU4BF0
late-commands:
- "echo 'xadmin ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/xadmin"
- "chmod 440 /target/etc/sudoers.d/ubuntu"
- "apt install -y qemu-guest-agent"
- "systemctl enable qemu-guest-agent"
- "apt purge -y snapd"
user-data:
disable_root: true
package_upgrade: true
ssh:
allow-pw: true
authorized-keys: []
install-server: true
late-commands:
- "echo 'xadmin ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/xadmin"
- "chmod 440 /target/etc/sudoers.d/xadmin"
bootcmd:
- "apt install -y qemu-guest-agent"
- "systemctl enable qemu-guest-agent"
- "systemctl start qemu-guest-agent"