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