# Controls the state of the ipv6 iptables service on your system. Valid options: 'running' or 'stopped'. Defaults to 'running'.
#
# @param pkg_ensure
-# Controls the state of the iptables package on your system. Valid options: 'present' or 'latest'. Defaults to 'latest'.
+# Controls the state of the iptables package on your system. Valid options: 'installed' or 'latest'. Defaults to 'latest'.
#
# @param service_name
# Specify the name of the IPv4 iptables service. Defaults defined in firewall::params.
class firewall::linux (
$ensure = running,
$ensure_v6 = undef,
- $pkg_ensure = present,
+ $pkg_ensure = installed,
$service_name = $firewall::params::service_name,
$service_name_v6 = $firewall::params::service_name_v6,
$package_name = $firewall::params::package_name,
it {
is_expected.to contain_package('iptables-persistent').with(
- ensure: 'present',
+ ensure: 'installed',
)
}
it {
it {
is_expected.to contain_package('iptables-persistent').with(
- ensure: 'present',
+ ensure: 'installed',
)
}
it {
it {
is_expected.to contain_package('iptables-persistent').with(
- ensure: 'present',
+ ensure: 'installed',
)
}
it {
it {
is_expected.to contain_package('netfilter-persistent').with(
- ensure: 'present',
+ ensure: 'installed',
)
}
it {
it {
is_expected.to contain_package('iptables-services').with(
- ensure: 'present',
+ ensure: 'installed',
before: 'Service[iptables]',
)
}
it {
is_expected.to contain_package('iptables-services').with(
- ensure: 'present',
+ ensure: 'installed',
before: ['Service[iptables]', 'Service[nftables]'],
)
}
it {
is_expected.to contain_package('nftables').with(
- ensure: 'present',
+ ensure: 'installed',
before: ['Service[iptables]', 'Service[nftables]'],
)
}
end
it { is_expected.to contain_class('firewall::linux::redhat').with_require('Package[iptables]') }
- it { is_expected.to contain_package('iptables').with_ensure('present') }
+ it { is_expected.to contain_package('iptables').with_ensure('installed') }
end
end
end
end
it { is_expected.to contain_class('firewall::linux::debian').with_require('Package[iptables]') }
- it { is_expected.to contain_package('iptables').with_ensure('present') }
+ it { is_expected.to contain_package('iptables').with_ensure('installed') }
end
end
end