tests(packer): define more common cloud init resources.
This commit is contained in:
parent
5bfebf6ea5
commit
2bc87f68a8
23 changed files with 311 additions and 434 deletions
|
|
@ -4,7 +4,6 @@ packages:
|
|||
# Install core packages
|
||||
- apparmor
|
||||
- base-devel
|
||||
- firewalld
|
||||
- qemu-guest-agent
|
||||
- rng-tools
|
||||
- spice-vdagent
|
||||
|
|
@ -25,17 +24,17 @@ packages:
|
|||
- cups-pdf
|
||||
- system-config-printer
|
||||
|
||||
# Install Applications
|
||||
- firefox
|
||||
- chromium
|
||||
- terminator
|
||||
|
||||
# Install Graphical Interface
|
||||
- xfce4
|
||||
- xfce4-goodies
|
||||
- lightdm
|
||||
- lightdm-gtk-greeter
|
||||
|
||||
# Install Applications
|
||||
- firefox
|
||||
- chromium
|
||||
- terminator
|
||||
|
||||
runcmd:
|
||||
# Regenerate grub.cfg
|
||||
- grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
|
@ -55,20 +54,6 @@ runcmd:
|
|||
- systemctl enable systemd-timesyncd.service
|
||||
|
||||
write_files:
|
||||
# Enable AppArmor in kernel parameters
|
||||
- path: /etc/default/grub
|
||||
append: true
|
||||
content: |
|
||||
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT lsm=landlock,lockdown,yama,integrity,apparmor,bpf"
|
||||
|
||||
# Set some bash aliases
|
||||
- path: /etc/skel/.bashrc
|
||||
append: true
|
||||
content: |
|
||||
[[ -f ~/.bash_aliases ]] && source ~/.bash_aliases
|
||||
|
||||
# Setup shared directory
|
||||
- path: /etc/fstab
|
||||
append: true
|
||||
content: |
|
||||
0a31bc478ef8e2461a4b1cc10a24cc4 /home/user/Projects/apparmor.d virtiofs defaults 0 1
|
||||
- *grub-enable-apparmor # Enable AppArmor in kernel parameters
|
||||
- *setup-bash-aliases # Set some bash aliases
|
||||
- *shared-directory # Setup shared directory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue