Projet

Général

Profil

Révision df2679aa

IDdf2679aaba73edbac3ca0a7a36fdaa53440db2fb
Parent ca24c673
Enfant 40b19655

Ajouté par tr il y a plus de 4 ans

Add in rule for puppet

Voir les différences:

manifests/rules/puppet.pp
1
# manage in puppet
2
class nftables::rules::puppet(
3
  Array[Integer,1]
4
    $ports = [8140],
5
) {
6
  nftables::filter::chain::rule{
7
    'default_in-puppet':
8
      content => "tcp dport {${join($ports,', ')}} accept",
9
  }
10
}

Formats disponibles : Unified diff