Do not run bastion for now on ubuntu24, SC-2522
This commit is contained in:
parent
b94a601b37
commit
73e5eb3486
1 changed files with 15 additions and 17 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue