Révision 331b8d85
New nftables::file type to include raw file
For example:
```puppet
nftables::file{'geoip':
content => "include \"/files/geoipsets/dbip/*.ipv4\"\n",
}
```
will right a file or content into the nftables configuration.
The file written will be included in configuration.
Fixes #146
templates/config/puppet.nft.epp | ||
---|---|---|
21 | 21 |
# drop any existing nftables ruleset, ensure tables are initialized |
22 | 22 |
<%= $_flush_command.join("\n") %> |
23 | 23 |
|
24 |
include "file-*.nft" |
|
24 | 25 |
include "custom-*.nft" |
25 | 26 |
<% if $inet_filter { -%> |
26 | 27 |
include "inet-filter.nft" |
Formats disponibles : Unified diff