Projet

Général

Profil

Révision 11bf7237

ID11bf7237333a685ccc629e0b2536a34c79a4e217
Parent 78f22811
Enfant b09d43bf

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

lint_fix results

Voir les différences:

manifests/rules/masquerade.pp
1 1
# masquerade all outgoing traffic
2
define nftables::rules::masquerade(
2
define nftables::rules::masquerade (
3 3
  Pattern[/^[a-zA-Z0-9_]+$/]
4
    $rulename = $title,
4
  $rulename = $title,
5 5
  Pattern[/^\d\d$/]
6
    $order = '70',
6
  $order = '70',
7 7
  String[1]
8
    $chain = 'POSTROUTING',
8
  $chain = 'POSTROUTING',
9 9
  Optional[String[1]]
10
    $oif = undef,
10
  $oif = undef,
11 11
  Optional[String[1]]
12
    $saddr = undef,
12
  $saddr = undef,
13 13
  Optional[String[1]]
14
    $daddr = undef,
14
  $daddr = undef,
15 15
  Optional[Enum['tcp','udp']]
16
    $proto = undef,
16
  $proto = undef,
17 17
  Optional[Variant[String,Integer[1,65535]]]
18
    $dport = undef,
18
  $dport = undef,
19 19
  Enum['present','absent']
20
    $ensure = 'present',
20
  $ensure = 'present',
21 21
) {
22

  
23 22
  $oifname = $oif ? {
24 23
    undef   => '',
25 24
    default => "oifname ${oif} ",
......
47 46
    $port     = ''
48 47
  }
49 48

  
50
  nftables::rule{
49
  nftables::rule {
51 50
    "${chain}-${rulename}":
52 51
      ensure  => $ensure,
53 52
      table   => 'ip-nat',

Formats disponibles : Unified diff