Defined Type: nftables::file

Defined in:
modules/nftables/manifests/file.pp

Overview

Parameters:

  • content (String)
  • ensure (Wmflib::Ensure) (defaults to: present)
  • order (Integer) (defaults to: 0)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'modules/nftables/manifests/file.pp', line 1

define nftables::file (
    String         $content,
    Wmflib::Ensure $ensure  = present,
    Integer        $order   = 0,
) {
    @file { "/etc/nftables/${order}_${title}_puppet.nft":
        ensure  => $ensure,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => $content,
        require => File['/etc/nftables/'],
        notify  => Systemd::Service['nftables'],
        tag     => 'nft',
    }
}