Try installing kernel via packages in cloud init script

This commit is contained in:
2023-11-17 17:04:33 +01:00
parent 4f467da9a1
commit ba8a1553f5
3 changed files with 4 additions and 1 deletions
@@ -11,6 +11,8 @@ users:
sudo: ALL=(ALL) NOPASSWD:ALL
ssh_authorized_keys:
- ${terraform_public_ssh_key}
packages:
- linux-generic-hwe-22.04
package_update: true
package_upgrade: true
package_reboot_if_required: true
@@ -11,6 +11,8 @@ users:
sudo: ALL=(ALL) NOPASSWD:ALL
ssh_authorized_keys:
- ${terraform_public_ssh_key}
packages:
- linux-generic-hwe-22.04
package_update: true
package_upgrade: true
package_reboot_if_required: true
@@ -3,7 +3,6 @@
apt-get -y install fail2ban
apt-get -y install ufw
apt-get -y install snapd
apt-get -y install linux-generic-hwe-22.04
curl https://packages.hetzner.com/hcloud/deb/hc-utils_0.0.4-1_all.deb -o /run/tmpfiles.d/hc-utils_0.0.4-1_all.deb -s
apt-get -y install /run/tmpfiles.d/hc-utils_0.0.4-1_all.deb