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