I've been testing out firewall cookbook version 5.0.0 with OEL8. My goal is to use nftables, but I had to modify where the resource lands the created nftables.conf file. It appears that OEL8's nftables uses a different default filepath(shared with RHEL8 and CentOS8).
|
file '/etc/nftables.conf' do |
RHEL8/Centos8/OEL8 = /etc/sysconfig/nftables.conf
Debian = /etc/nftables.conf
I understand that Debian was the only OS tested with nftables, but I'd like to expand it to OEL8. I'm curious to see what approach might be best to add this into the nftables resource.
- Duplicate the resource and make it OS specific?
- Add a OS/version check to that action?
- Something else entirely?
I've been testing out firewall cookbook version 5.0.0 with OEL8. My goal is to use nftables, but I had to modify where the resource lands the created nftables.conf file. It appears that OEL8's nftables uses a different default filepath(shared with RHEL8 and CentOS8).
firewall/resources/nftables.rb
Line 43 in 62a3799
RHEL8/Centos8/OEL8 = /etc/sysconfig/nftables.conf
Debian = /etc/nftables.conf
I understand that Debian was the only OS tested with nftables, but I'd like to expand it to OEL8. I'm curious to see what approach might be best to add this into the nftables resource.