mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
tests: improve tests image content.
This commit is contained in:
parent
e8fcc12c98
commit
aa84d08ef6
@ -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 ]
|
||||
|
@ -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 ]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user