Defined Type: nftables::file::input
- Defined in:
- modules/nftables/manifests/file/input.pp
Overview
SPDX-License-Identifier: Apache-2.0 Install an input rule for nftables
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'modules/nftables/manifests/file/input.pp', line 3
define nftables::file::input (
String $content,
Wmflib::Ensure $ensure = present,
Integer[0,99] $order = 0,
) {
@file { sprintf('/etc/nftables/input/%02d_%s.nft', $order, $title):
ensure => $ensure,
owner => 'root',
group => 'root',
mode => '0444',
content => $content,
require => File['/etc/nftables/'],
notify => Service['nftables'],
tag => 'nft',
}
}
|