summaryrefslogtreecommitdiff
path: root/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-05-10 18:12:23 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-05-10 18:12:23 +0200
commit98951565c853116d15ff5677ca19808bf081b2dc (patch)
treebe10520eb8d099882f116710df4b1896f04d4cc8 /roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2
parentapt-repo/backports: fix usage of wrong variable (diff)
ubuntu-installer fixes
Diffstat (limited to 'roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2')
-rw-r--r--roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j216
1 files changed, 10 insertions, 6 deletions
diff --git a/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 b/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2
index 841ebf63..9911f654 100644
--- a/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2
+++ b/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2
@@ -219,6 +219,10 @@ autoinstall:
write_files:
- content: |
#!/bin/bash
+ for i in $(seq 10 -1 1); do echo "waiting $i seconds for cloud-init to finish."; sleep 1; done
+ echo "******************************************************************************"
+ echo "***** getting rid of cloud-init and other crap we neither want nor need! *****"
+ echo "******************************************************************************"
apt-get -y -q purge cloud-init cloud-guest-utils cloud-initramfs-copymods cloud-initramfs-dyn-netconf sosreport update-notifier-common ubuntu-pro-client
{% if ubuntu_autoinstall_desktop is undefined %}
apt-get -y -q purge snapd python3-cryptography gpg ssh-import-id
@@ -237,7 +241,7 @@ autoinstall:
path: /root/post-cleanup.sh
permissions: '0755'
runcmd:
- - ['systemd-run', '-p', 'StandardOutput=journal+console', '--on-active=10', '/root/post-cleanup.sh']
+ - ['systemd-run', '-p', 'StandardOutput=journal+console', '/root/post-cleanup.sh']
ssh:
install-server: true
@@ -259,15 +263,15 @@ autoinstall:
- curtin in-target --target=/target -- bash -c "mkdir -p /etc/systemd/system/ssh.socket.d; echo -e '[Socket]\nListenStream=\nListenStream={{ ansible_port }}' > /etc/systemd/system/ssh.socket.d/port.conf"
{% endif %}
- curtin in-target --target=/target -- apt-get -y -q purge multipath-tools open-vm-tools
-{% if (install_codename | ubuntu_release_compare('>=', 'jammy')) %}
+{% if (install_codename | ubuntu_release_compare('>=', 'jammy')) %}
- curtin in-target --target=/target -- apt-get -y -q purge systemd-oomd
-{% endif %}
+{% endif %}
+{% if (install_codename | ubuntu_release_compare('>=', 'noble')) %}
+ - curtin in-target --target=/target -- apt-get -y -q purge ubuntu-kernel-accessories
+{% endif %}
{% if ubuntu_autoinstall_desktop is undefined %}
- curtin in-target --target=/target -- apt-mark manual iputils-ping isc-dhcp-client netcat-openbsd netplan.io sudo
- curtin in-target --target=/target -- apt-get -y -q purge policykit-1 ubuntu-minimal unattended-upgrades ubuntu-advantage-tools sound-theme-freedesktop thin-provisioning-tools cryptsetup byobu open-iscsi btrfs-progs pollinate lxd-agent-loader ufw
-{% if (install_codename | ubuntu_release_compare('>=', 'noble')) %}
- - curtin in-target --target=/target -- apt-get -y -q purge ubuntu-kernel-accessories
-{% endif %}
{% if install.disks.primary != "software-raid" %}
- curtin in-target --target=/target -- apt-get -y -q purge mdadm
{% endif %}