dont enable ufw on newer hosts
This commit is contained in:
parent
ebb2865ff4
commit
261c7831fd
1 changed files with 9 additions and 1 deletions
|
@ -35,7 +35,15 @@ class common {
|
||||||
include sunet::tools
|
include sunet::tools
|
||||||
include sunet::motd
|
include sunet::motd
|
||||||
include sunet::ntp
|
include sunet::ntp
|
||||||
include ufw
|
|
||||||
|
if $::sunet_nftables_opt_in != 'yes' and ! ( $::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '22.04') >= 0 ) {
|
||||||
|
warning('Enabling UFW')
|
||||||
|
include ufw
|
||||||
|
} else {
|
||||||
|
warning('Enabling nftables')
|
||||||
|
ensure_resource ('class','sunet::nftables::init', { })
|
||||||
|
}
|
||||||
|
|
||||||
include apt
|
include apt
|
||||||
include apparmor
|
include apparmor
|
||||||
package {'jq': ensure => 'latest'}
|
package {'jq': ensure => 'latest'}
|
||||||
|
|
Loading…
Add table
Reference in a new issue