Révision 11bf7237
lint_fix results
manifests/config.pp | ||
---|---|---|
1 | 1 |
# manage a config snippet |
2 |
define nftables::config( |
|
2 |
define nftables::config (
|
|
3 | 3 |
Optional[String] |
4 |
$content = undef,
|
|
4 |
$content = undef, |
|
5 | 5 |
Optional[Variant[String,Array[String,1]]] |
6 |
$source = undef,
|
|
7 |
){ |
|
6 |
$source = undef, |
|
7 |
) {
|
|
8 | 8 |
$concat_name = "nftables-${name}" |
9 | 9 |
|
10 |
Package['nftables'] -> concat{ |
|
10 |
Package['nftables'] -> concat {
|
|
11 | 11 |
$concat_name: |
12 | 12 |
path => "/etc/nftables/puppet-preflight/${name}.nft", |
13 | 13 |
ensure_newline => true, |
14 | 14 |
owner => root, |
15 | 15 |
group => root, |
16 | 16 |
mode => '0640', |
17 |
} ~> Exec['nft validate'] -> file{ |
|
17 |
} ~> Exec['nft validate'] -> file {
|
|
18 | 18 |
"/etc/nftables/puppet/${name}.nft": |
19 |
ensure => file, |
|
20 |
source => "/etc/nftables/puppet-preflight/${name}.nft", |
|
21 |
owner => root, |
|
22 |
group => root, |
|
23 |
mode => '0640', |
|
19 |
ensure => file,
|
|
20 |
source => "/etc/nftables/puppet-preflight/${name}.nft",
|
|
21 |
owner => root,
|
|
22 |
group => root,
|
|
23 |
mode => '0640',
|
|
24 | 24 |
} ~> Service['nftables'] |
25 | 25 |
|
26 | 26 |
$data = split($name, '-') |
Formats disponibles : Unified diff