-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add ability to include completely raw files #146
Comments
Do you have the I don't use this but I would have thought it was. nftables::config{'inet-filter':
content => @(EOT),
# THIS FILE IS MANAGED BY PUPPET
include "/var/local/geoipsets/dbip/nftset/ipv4/*.ipv4"
include "/var/local/geoipsets/dbip/nftset/ipv6/*.ipv6"
|EOT,
} presumably those dbip files are generated from something else and the sets in there will be added to |
Wrong: nftables::config{'geoip-sets':
content => @(EOT),
# THIS FILE IS MANAGED BY PUPPET
include "/var/local/geoipsets/dbip/nftset/ipv4/*.ipv4"
include "/var/local/geoipsets/dbip/nftset/ipv6/*.ipv6"
|EOT,
} Though I confess I am bit confused why the title has to |
This won't work, since it will always surround it with a table:
|
So we need a new type |
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 voxpupuli#146
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 voxpupuli#146
I have a list of files I need to include without any header or footer, which currently isn't possible. According to the README one should use
nftables::config
for that whichManages a raw file in /etc/nftables/puppet/${name}.nft
, but that always surrounds the provided source or content with stuff.Currently, I have to create the files manually, which isn't clean at all:
Am I missing something here?
There should be an ability to A) provide a list of external
*.nft
files to include or B) a flag fornfttables::config
to use the content as-is.The text was updated successfully, but these errors were encountered: