{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
- "6",
"7"
]
},
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
- "6",
"7"
]
},
{
"operatingsystem": "VirtuozzoLinux",
"operatingsystemrelease": [
- "6",
"7"
]
}
sut_os = "#{os_name}-#{os_release}"
-manage_initfile = case sut_os
- when 'CentOS-6'
- true
- else
- false
- end
-
iptables_output = case sut_os
when 'Debian-10'
[
class { 'ferm':
manage_service => true,
manage_configfile => true,
- manage_initfile => #{manage_initfile}, # CentOS-6 does not provide init script
forward_policy => 'DROP',
output_policy => 'ACCEPT',
input_policy => 'DROP',
class { 'ferm':
manage_service => true,
manage_configfile => true,
- manage_initfile => #{manage_initfile}, # CentOS-6 does not provide init script
forward_policy => 'DROP',
output_policy => 'ACCEPT',
input_policy => 'DROP',