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

@ -14,7 +14,7 @@ rootpw --iscrypted $6$kkuIkd8S9gDUhK8g$1XbqJDCjt1zQAhxb9sC2mE5CGd.D0xV1efu0R8h1e
authselect --useshadow --passalgo=sha512
# Create my initial user :D
#user --disabled
user --name=xadmin --shell=/bin/bash --homedir=/home/xadmin --iscrypted --password=$6$y6lN/cfPPtlyaTXu$4QUYFl816sxWPuyR.eY6mCJ3ybYLNcF6Pw4ar4K7Dyy9LbedK3PjkTNZfWqSdoPRpJMjtrbpY1xQ.zDXxOTug.
user --name=xadmin --shell=/bin/bash --homedir=/home/xadmin --iscrypted --password=$6$8DdxHyrH6HfGZhDs$jEadYAMi3CTJivYgGjhG7S2C/ChZxv0w0L6AQ3Egn8K5xIA4OEqDngVfozfn.9kYxy.hWYpzwBE0qwytcU4BF0
network --device=eth0 --bootproto=dhcp --ipv6=auto --activate
@ -42,7 +42,6 @@ reboot --eject
@core
nfs-utils
sudo
qemu-guest-agent
%end
@ -50,13 +49,12 @@ qemu-guest-agent
# Update the system
yum -y update
# Istall the EPEL repository
yum -y install epel-release
dnf -y install epel-release
yum -y install wget vim yum-plugin-versionlock
dnf -y install wget vim yum-plugin-versionlock qemu-guest-agent
usermod -aG wheel xadmin
systemctl enable qemu-guest-agent
%end

View File

@ -14,7 +14,7 @@ rootpw --iscrypted $6$kkuIkd8S9gDUhK8g$1XbqJDCjt1zQAhxb9sC2mE5CGd.D0xV1efu0R8h1e
authselect --useshadow --passalgo=sha512
# Create my initial user :D
#user --disabled
user --name=xadmin --shell=/bin/bash --homedir=/home/xadmin --iscrypted --password=$6$y6lN/cfPPtlyaTXu$4QUYFl816sxWPuyR.eY6mCJ3ybYLNcF6Pw4ar4K7Dyy9LbedK3PjkTNZfWqSdoPRpJMjtrbpY1xQ.zDXxOTug.
user --name=xadmin --shell=/bin/bash --homedir=/home/xadmin --iscrypted --password=$6$8DdxHyrH6HfGZhDs$jEadYAMi3CTJivYgGjhG7S2C/ChZxv0w0L6AQ3Egn8K5xIA4OEqDngVfozfn.9kYxy.hWYpzwBE0qwytcU4BF0
network --device=eth0 --bootproto=dhcp --ipv6=auto --activate
@ -42,7 +42,6 @@ reboot --eject
@core
nfs-utils
sudo
qemu-guest-agent
%end
@ -50,13 +49,12 @@ qemu-guest-agent
# Update the system
yum -y update
# Istall the EPEL repository
yum -y install epel-release
dnf -y install epel-release
yum -y install wget vim yum-plugin-versionlock
dnf -y install wget vim yum-plugin-versionlock qemu-guest-agent
usermod -aG wheel xadmin
systemctl enable qemu-guest-agent
%end

0
http/ubuntu-22/meta-data Normal file
View File

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"