Projet

Général

Profil

Révision 331b8d85

ID331b8d85f7c38b6dbfe602f75d6c9831b1534694
Parent 753540f1
Enfant 77503f49

Ajouté par Steve Traylen il y a plus de 2 ans

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

Voir les différences:

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