Projet

Général

Profil

Révision 94a80621

ID94a806213c2c7e0ce69d7be48ee88fca969db6cb
Parent b1085d8d
Enfant 5d71ec69

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

Use Stdlib::Port everywhere in place of Integer

Use Stdlib::Port in place of Integer for ports

Fixes #37

Voir les différences:

manifests/rules/dnat4.pp
1 1
# manage a ipv4 dnat rule
2 2
define nftables::rules::dnat4 (
3 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,
4
  Variant[String,Stdlib::Port] $port,
5 5
  Pattern[/^[a-zA-Z0-9_]+$/] $rulename = $title,
6 6
  Pattern[/^\d\d$/] $order = '50',
7 7
  String[1] $chain = 'default_fwd',
8 8
  Optional[String[1]] $iif = undef,
9 9
  Enum['tcp','udp'] $proto = 'tcp',
10
  Optional[Variant[String,Integer[1,65535]]] $dport = '',
10
  Optional[Variant[String,Stdlib::Port]] $dport = '',
11 11
  Enum['present','absent'] $ensure = 'present',
12 12
) {
13 13
  $iifname = $iif ? {

Formats disponibles : Unified diff