mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-03-03 14:14:43 +01:00
tests(packer): add test images for ubuntu 25.04 & debian 13
Some checks are pending
Ubuntu / check (push) Waiting to run
Ubuntu / build (default, ubuntu-22.04) (push) Blocked by required conditions
Ubuntu / build (default, ubuntu-24.04) (push) Blocked by required conditions
Ubuntu / build (full-system-policy, ubuntu-22.04) (push) Blocked by required conditions
Ubuntu / build (full-system-policy, ubuntu-24.04) (push) Blocked by required conditions
Ubuntu / tests (push) Blocked by required conditions
Some checks are pending
Ubuntu / check (push) Waiting to run
Ubuntu / build (default, ubuntu-22.04) (push) Blocked by required conditions
Ubuntu / build (default, ubuntu-24.04) (push) Blocked by required conditions
Ubuntu / build (full-system-policy, ubuntu-22.04) (push) Blocked by required conditions
Ubuntu / build (full-system-policy, ubuntu-24.04) (push) Blocked by required conditions
Ubuntu / tests (push) Blocked by required conditions
This commit is contained in:
parent
e6752cb4b9
commit
c9d249e5e3
3 changed files with 55 additions and 57 deletions
36
tests/cloud-init/debian13-server.user-data.yml
Normal file
36
tests/cloud-init/debian13-server.user-data.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
#cloud-config
|
||||||
|
|
||||||
|
packages:
|
||||||
|
- apparmor-profiles
|
||||||
|
- auditd
|
||||||
|
- build-essential
|
||||||
|
- config-package-dev
|
||||||
|
- debhelper
|
||||||
|
- devscripts
|
||||||
|
- golang-go
|
||||||
|
- htop
|
||||||
|
- qemu-guest-agent
|
||||||
|
- rsync
|
||||||
|
- vim
|
||||||
|
|
||||||
|
write_files:
|
||||||
|
|
||||||
|
# Setup shared directory
|
||||||
|
- path: /etc/fstab
|
||||||
|
append: true
|
||||||
|
content: |
|
||||||
|
0a31bc478ef8e2461a4b1cc10a24cc4 /home/user/Projects/apparmor.d virtiofs defaults 0 1
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
|
- path: /etc/systemd/network/20-wired.network
|
||||||
|
owner: "root:root"
|
||||||
|
permissions: "0644"
|
||||||
|
content: |
|
||||||
|
[Match]
|
||||||
|
Name=en*
|
||||||
|
|
||||||
|
[Network]
|
||||||
|
DHCP=yes
|
||||||
|
|
||||||
|
[DHCPv4]
|
||||||
|
RouteMetric=10
|
|
@ -17,29 +17,23 @@ packages:
|
||||||
- ubuntu-desktop
|
- ubuntu-desktop
|
||||||
- vim
|
- vim
|
||||||
|
|
||||||
snap:
|
|
||||||
commands:
|
|
||||||
- install firefox
|
|
||||||
- install gtk-common-themes
|
|
||||||
- install snap-store
|
|
||||||
- install snapd-desktop-integration
|
|
||||||
|
|
||||||
runcmd:
|
runcmd:
|
||||||
|
# Add missing snap packages
|
||||||
|
- snap install snap-store
|
||||||
|
- snap install snapd-desktop-integration
|
||||||
|
|
||||||
# Remove default filesystem and related tools not used with the suggested
|
# Remove default filesystem and related tools not used with the suggested
|
||||||
# storage layout. These may yet be required if different partitioning schemes
|
# storage layout. These may yet be required if different partitioning schemes
|
||||||
# are used.
|
# are used.
|
||||||
- apt-get -y purge btrfs-progs cryptsetup* lvm2 xfsprogs
|
- apt-get -y purge btrfs-progs xfsprogs
|
||||||
|
|
||||||
# Remove other packages present by default in Ubuntu Server but not
|
# Remove other packages present by default in Ubuntu Server but not
|
||||||
# normally present in Ubuntu Desktop.
|
# normally present in Ubuntu Desktop.
|
||||||
# - >-
|
- >-
|
||||||
# apt-get -y purge
|
apt-get -y purge
|
||||||
# ubuntu-server ubuntu-server-minimal netplan.io cloud-init
|
byobu dmeventd finalrd gawk kpartx landscape-common lxd-agent-loader
|
||||||
# binutils byobu curl dmeventd finalrd gawk
|
mdadm motd-news-config ncurses-term open-iscsi open-vm-tools
|
||||||
# kpartx mdadm ncurses-term needrestart open-iscsi
|
screen sg3-utils sosreport ssh-import-id sssd tmux
|
||||||
# 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
|
|
||||||
|
|
||||||
# Finally, remove things only installed as dependencies of other things
|
# Finally, remove things only installed as dependencies of other things
|
||||||
# we have already removed.
|
# we have already removed.
|
||||||
|
@ -51,16 +45,3 @@ write_files:
|
||||||
append: true
|
append: true
|
||||||
content: |
|
content: |
|
||||||
0a31bc478ef8e2461a4b1cc10a24cc4 /home/user/Projects/apparmor.d virtiofs defaults 0 1
|
0a31bc478ef8e2461a4b1cc10a24cc4 /home/user/Projects/apparmor.d virtiofs defaults 0 1
|
||||||
|
|
||||||
- path: /etc/systemd/network/20-wired.network
|
|
||||||
owner: "root:root"
|
|
||||||
permissions: "0644"
|
|
||||||
content: |
|
|
||||||
[Match]
|
|
||||||
Name=en*
|
|
||||||
|
|
||||||
[Network]
|
|
||||||
DHCP=yes
|
|
||||||
|
|
||||||
[DHCPv4]
|
|
||||||
RouteMetric=10
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ packages:
|
||||||
- debhelper
|
- debhelper
|
||||||
- devscripts
|
- devscripts
|
||||||
- golang-go
|
- golang-go
|
||||||
- linux-generic-hwe-22.04
|
- linux-generic-hwe-24.04
|
||||||
- qemu-guest-agent
|
- qemu-guest-agent
|
||||||
- rsync
|
- rsync
|
||||||
- spice-vdagent
|
- spice-vdagent
|
||||||
|
@ -17,29 +17,23 @@ packages:
|
||||||
- ubuntu-desktop
|
- ubuntu-desktop
|
||||||
- vim
|
- vim
|
||||||
|
|
||||||
snap:
|
|
||||||
commands:
|
|
||||||
- install firefox
|
|
||||||
- install gtk-common-themes
|
|
||||||
- install snap-store
|
|
||||||
- install snapd-desktop-integration
|
|
||||||
|
|
||||||
runcmd:
|
runcmd:
|
||||||
|
- snap install snap-store
|
||||||
|
- snap install snapd-desktop-integration
|
||||||
|
- snap install --edge desktop-security-center
|
||||||
|
|
||||||
# Remove default filesystem and related tools not used with the suggested
|
# Remove default filesystem and related tools not used with the suggested
|
||||||
# storage layout. These may yet be required if different partitioning schemes
|
# storage layout. These may yet be required if different partitioning schemes
|
||||||
# are used.
|
# are used.
|
||||||
- apt-get -y purge btrfs-progs cryptsetup* lvm2 xfsprogs
|
- apt-get -y purge btrfs-progs xfsprogs
|
||||||
|
|
||||||
# Remove other packages present by default in Ubuntu Server but not
|
# Remove other packages present by default in Ubuntu Server but not
|
||||||
# normally present in Ubuntu Desktop.
|
# normally present in Ubuntu Desktop.
|
||||||
- >-
|
- >-
|
||||||
apt-get -y purge
|
apt-get -y purge
|
||||||
ubuntu-server ubuntu-server-minimal netplan.io cloud-init
|
byobu dmeventd finalrd gawk kpartx landscape-common lxd-agent-loader
|
||||||
binutils byobu curl dmeventd finalrd gawk
|
mdadm motd-news-config ncurses-term open-iscsi open-vm-tools
|
||||||
kpartx mdadm ncurses-term needrestart open-iscsi
|
screen sg3-utils sosreport ssh-import-id sssd tmux
|
||||||
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
|
|
||||||
|
|
||||||
# Finally, remove things only installed as dependencies of other things
|
# Finally, remove things only installed as dependencies of other things
|
||||||
# we have already removed.
|
# we have already removed.
|
||||||
|
@ -51,16 +45,3 @@ write_files:
|
||||||
append: true
|
append: true
|
||||||
content: |
|
content: |
|
||||||
0a31bc478ef8e2461a4b1cc10a24cc4 /home/user/Projects/apparmor.d virtiofs defaults 0 1
|
0a31bc478ef8e2461a4b1cc10a24cc4 /home/user/Projects/apparmor.d virtiofs defaults 0 1
|
||||||
|
|
||||||
- path: /etc/systemd/network/20-wired.network
|
|
||||||
owner: "root:root"
|
|
||||||
permissions: "0644"
|
|
||||||
content: |
|
|
||||||
[Match]
|
|
||||||
Name=en*
|
|
||||||
|
|
||||||
[Network]
|
|
||||||
DHCP=yes
|
|
||||||
|
|
||||||
[DHCPv4]
|
|
||||||
RouteMetric=10
|
|
Loading…
Add table
Reference in a new issue