tests: improve tests image content.

This commit is contained in:
Alexandre Pujol 2023-11-13 23:40:51 +00:00
parent e8fcc12c98
commit aa84d08ef6
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
4 changed files with 20 additions and 16 deletions

View File

@ -59,8 +59,6 @@ runcmd:
# Regenerate grub.cfg
- [ grub-mkconfig, -o, /boot/grub/grub.cfg ]
# Enable firewall
# Enable core services
- [ systemctl, enable, apparmor ]
- [ systemctl, enable, auditd ]

View File

@ -61,8 +61,6 @@ runcmd:
# Regenerate grub.cfg
- [ grub-mkconfig, -o, /boot/grub/grub.cfg ]
# Enable firewall
# Enable core services
- [ systemctl, enable, apparmor ]
- [ systemctl, enable, auditd ]

View File

@ -43,30 +43,37 @@ snap:
runcmd:
# Let NetworkManager handle network
- rm /etc/netplan/*
- >-
printf "network:\n version: 2\n renderer: NetworkManager" > /etc/netplan/01-network-manager.yaml
# Remove default filesystem and related tools not used with the suggested
# storage layout. These may yet be required if different partitioning schemes
# are used.
- apt-get -y remove btrfs-progs cryptsetup* lvm2 xfsprogs
- apt-get -y purge btrfs-progs cryptsetup* lvm2 xfsprogs
# Remove other packages present by default in Ubuntu Server but not
# normally present in Ubuntu Desktop.
- >-
apt-get -y remove
ubuntu-server ubuntu-server-minimal
apt-get -y purge
ubuntu-server ubuntu-server-minimal netplan.io cloud-init
binutils byobu curl dmeventd finalrd gawk
kpartx mdadm ncurses-term needrestart open-iscsi
sg3-utils ssh-import-id sssd thin-provisioning-tools tmux
sosreport screen open-vm-tools motd-news-config lxd-agent-loader
landscape-common fonts-ubuntu-console ethtool
# Keep cloud-init, as it performs some of the installation on first boot.
- apt-get -y install cloud-init
# Finally, remove things only installed as dependencies of other things
# we have already removed.
- apt-get -y autoremove
write_files:
- path: /etc/systemd/network/20-wired.network
owner: 'root:root'
permissions: '0644'
content: |
[Match]
Name=en*
[Network]
DHCP=yes
[DHCPv4]
RouteMetric=10

View File

@ -20,7 +20,8 @@ package_upgrade: true
package_reboot_if_required: false
packages:
- apparmor-profiles
- build-essential
- auditd
- build-essential
- config-package-dev
- debhelper
- devscripts