Do not run bastion for now on ubuntu24, SC-2522

This commit is contained in:
Patrik Holmqvist 2024-12-19 15:40:27 +01:00
parent b94a601b37
commit 73e5eb3486
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -838,23 +838,21 @@ class sunetops {
config => safe_hiera('sunetops_ssh_keys', {})
}
# OS hardening
if $facts['networking']['hostname'] =~ /kvm/ {
class {'bastion':
fstab_fix_shm => false,
sysctl_net_hardening => false,
}
} elsif $facts['networking']['hostname'] =~ /random/ { # pollen requires exec on /tmp
class {'bastion':
fixperms_enable => false,
fixperms_paranoia => false,
}
} else {
class {'bastion':
fstab_fix_shm => false,
fixperms_paranoia => true,
}
}
# OS hardening
# For now we skip this on ubuntu24, SC-2522
if ($facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['full'], '22.04') <= 0 ){
if $facts['networking']['hostname'] =~ /kvm/ {
class {'bastion':
fstab_fix_shm => false,
sysctl_net_hardening => false,
}
} else {
class {'bastion':
fstab_fix_shm => false,
fixperms_paranoia => true,
}
}
}
class konsulter {