Projet

Général

Profil

Révision 31b17627

ID31b1762780ddf211709dab2e3abbeba499ab9f30
Parent 59c1ddf4
Enfant 5b4c71bc

Ajouté par Steve Traylen il y a plus de 4 ans

Use single line for each parameter definition

Voir les différences:

manifests/rules/dnat4.pp
1 1
# manage a ipv4 dnat rule
2 2
define nftables::rules::dnat4 (
3
  Pattern[/^[12]?\d{1,2}\.[12]?\d{1,2}\.[12]?\d{1,2}\.[12]?\d{1,2}$/]
4
  $daddr,
5
  Variant[String,Integer[1,65535]]
6
  $port,
7
  Pattern[/^[a-zA-Z0-9_]+$/]
8
  $rulename = $title,
9
  Pattern[/^\d\d$/]
10
  $order = '50',
11
  String[1]
12
  $chain = 'default_fwd',
13
  Optional[String[1]]
14
  $iif = undef,
15
  Enum['tcp','udp']
16
  $proto = 'tcp',
17
  Optional[Variant[String,Integer[1,65535]]]
18
  $dport = '',
19
  Enum['present','absent']
20
  $ensure = 'present',
3
  Pattern[/^[12]?\d{1,2}\.[12]?\d{1,2}\.[12]?\d{1,2}\.[12]?\d{1,2}$/] $daddr,
4
  Variant[String,Integer[1,65535]] $port,
5
  Pattern[/^[a-zA-Z0-9_]+$/] $rulename = $title,
6
  Pattern[/^\d\d$/] $order = '50',
7
  String[1] $chain = 'default_fwd',
8
  Optional[String[1]] $iif = undef,
9
  Enum['tcp','udp'] $proto = 'tcp',
10
  Optional[Variant[String,Integer[1,65535]]] $dport = '',
11
  Enum['present','absent'] $ensure = 'present',
21 12
) {
22 13
  $iifname = $iif ? {
23 14
    undef   => '',

Formats disponibles : Unified diff