-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RHEL8/Centos8/OEL8 nftables.conf filepath #253
Comments
The way to go with it would be to move the file path to a resource property, then set the default value of the property to the OS specific default (via a helper method). This should fix the bug but also allow others to override the path should they need to in the future. |
Agree with @bmhughes, this helper will help set the default value based on OS https://docs.chef.io/infra_language/checking_platforms/#value_for_platform. |
I wouldn't use |
Thanks for the info! I'll see what I can whip up based off the examples. |
Finally got around adding a resource property for the nftables.conf file. Created PR: #255 |
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.
The text was updated successfully, but these errors were encountered: