Projet

Général

Profil

Révision 6a4ffead

ID6a4ffeadf03a0e25d32963d12dcfa68a1a1595d0
Parent 2bcfc1aa
Enfant 8c00b818

Ajouté par Nacho Barrientos il y a plus de 4 ans

Align simplerule and rule rulename requirements

Voir les différences:

manifests/simplerule.pp
54 54
#   Enable traffic counters for the matched traffic.
55 55
define nftables::simplerule (
56 56
  Enum['present','absent'] $ensure = 'present',
57
  Pattern[/^[-a-zA-Z0-9_]+$/] $rulename = $title,
57
  Pattern[/^[a-zA-Z0-9_]+(-\d+)?$/] $rulename = $title,
58 58
  Pattern[/^\d\d$/] $order = '50',
59 59
  String $chain  = 'default_in',
60 60
  String $table = 'inet-filter',

Formats disponibles : Unified diff