Update legacy facts syntax.

This commit is contained in:
Patrik Holmqvist 2024-12-19 10:59:00 +01:00
parent 37fcac0ba8
commit b94a601b37
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -839,12 +839,12 @@ class sunetops {
}
# OS hardening
if $::hostname =~ /kvm/ {
if $facts['networking']['hostname'] =~ /kvm/ {
class {'bastion':
fstab_fix_shm => false,
sysctl_net_hardening => false,
}
} elsif $::hostname =~ /random/ { # pollen requires exec on /tmp
} elsif $facts['networking']['hostname'] =~ /random/ { # pollen requires exec on /tmp
class {'bastion':
fixperms_enable => false,
fixperms_paranoia => false,