Révision 31b17627
Use single line for each parameter definition
manifests/chain.pp | ||
---|---|---|
1 | 1 |
# manage a chain |
2 | 2 |
define nftables::chain ( |
3 |
Pattern[/^(ip|ip6|inet)-[a-zA-Z0-9_]+$/] |
|
4 |
$table = 'inet-filter', |
|
5 |
Pattern[/^[a-zA-Z0-9_]+$/] |
|
6 |
$chain = $title, |
|
7 |
Optional[Pattern[/^\d\d-[a-zA-Z0-9_]+$/]] |
|
8 |
$inject = undef, |
|
9 |
Optional[String] |
|
10 |
$inject_iif = undef, |
|
11 |
Optional[String] |
|
12 |
$inject_oif = undef, |
|
3 |
Pattern[/^(ip|ip6|inet)-[a-zA-Z0-9_]+$/] $table = 'inet-filter', |
|
4 |
Pattern[/^[a-zA-Z0-9_]+$/] $chain = $title, |
|
5 |
Optional[Pattern[/^\d\d-[a-zA-Z0-9_]+$/]] $inject = undef, |
|
6 |
Optional[String] $inject_iif = undef, |
|
7 |
Optional[String] $inject_oif = undef, |
|
13 | 8 |
) { |
14 | 9 |
$concat_name = "nftables-${table}-chain-${chain}" |
15 | 10 |
|
Formats disponibles : Unified diff