Skip to content

Commit

Permalink
opensuse: install correct security packages
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Feb 23, 2025
1 parent 3bf6565 commit 1737f87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opensuse-leap-15.6.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source "qemu" "opensuseleap156" {
qmp_enable = var.headless
disk_discard = "unmap"
http_content = {
"/opensuse.xml" = templatefile("${path.root}/opensuse.xml", { path = path, hostname = "opensuseleap156", product = "Leap" })
"/opensuse.xml" = templatefile("${path.root}/opensuse.xml", { path = path, hostname = "opensuseleap156", product = "Leap", security = "apparmor" })
}
ssh_timeout = "1h"
ssh_username = "vagrant"
Expand Down
2 changes: 1 addition & 1 deletion opensuse-tumbleweed.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ source "qemu" "opensusetumbleweed" {
qmp_enable = var.headless
disk_discard = "unmap"
http_content = {
"/opensuse.xml" = templatefile("${path.root}/opensuse.xml", { path = path, hostname = "opensusetumbleweed", product = "openSUSE" })
"/opensuse.xml" = templatefile("${path.root}/opensuse.xml", { path = path, hostname = "opensusetumbleweed", product = "openSUSE", security = "selinux" })
}
ssh_timeout = "1h"
ssh_username = "vagrant"
Expand Down
5 changes: 4 additions & 1 deletion opensuse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,15 @@ chmod 0440 /etc/sudoers.d/vagrant
<package>spice-webdavd</package>
</packages>
<patterns config:type="list">
<pattern>apparmor</pattern>
<pattern>${security}</pattern>
<pattern>enhanced_base</pattern>
<pattern>gnome</pattern>
<pattern>gnome_x11</pattern>
</patterns>
</software>
<security>
<lsm_select>${security}</lsm_select>
</security>
<users config:type="list">
<user>
<encrypted config:type="boolean">false</encrypted>
Expand Down

0 comments on commit 1737f87

Please sign in to comment.