Révision 948ebc98
Prefix custom tables with custom- so they're loaded
spec/defines/config_spec.rb | ||
---|---|---|
15 | 15 |
it { is_expected.to contain_concat('nftables-FOO-BAR') } |
16 | 16 |
it { |
17 | 17 |
is_expected.to contain_concat('nftables-FOO-BAR').with( |
18 |
path: '/etc/nftables/puppet-preflight/FOO-BAR.nft', |
|
18 |
path: '/etc/nftables/puppet-preflight/custom-FOO-BAR.nft',
|
|
19 | 19 |
ensure_newline: true, |
20 | 20 |
mode: '0640', |
21 | 21 |
) |
22 | 22 |
} |
23 |
it { is_expected.to contain_file('/etc/nftables/puppet/FOO-BAR.nft') } |
|
23 |
it { is_expected.to contain_file('/etc/nftables/puppet/custom-FOO-BAR.nft') }
|
|
24 | 24 |
it { |
25 |
is_expected.to contain_file('/etc/nftables/puppet/FOO-BAR.nft').with( |
|
25 |
is_expected.to contain_file('/etc/nftables/puppet/custom-FOO-BAR.nft').with(
|
|
26 | 26 |
ensure: 'file', |
27 |
source: '/etc/nftables/puppet-preflight/FOO-BAR.nft', |
|
27 |
source: '/etc/nftables/puppet-preflight/custom-FOO-BAR.nft',
|
|
28 | 28 |
mode: '0640', |
29 | 29 |
) |
30 | 30 |
} |
... | ... | |
74 | 74 |
it { is_expected.to contain_concat('nftables-FOO-BAR') } |
75 | 75 |
it { |
76 | 76 |
is_expected.to contain_concat('nftables-FOO-BAR').with( |
77 |
path: '/etc/nftables/puppet-preflight/FOO-BAR.nft', |
|
77 |
path: '/etc/nftables/puppet-preflight/custom-FOO-BAR.nft',
|
|
78 | 78 |
ensure_newline: true, |
79 | 79 |
mode: '0640', |
80 | 80 |
) |
81 | 81 |
} |
82 |
it { is_expected.to contain_file('/etc/nftables/puppet/FOO-BAR.nft') } |
|
82 |
it { is_expected.to contain_file('/etc/nftables/puppet/custom-FOO-BAR.nft') }
|
|
83 | 83 |
it { |
84 |
is_expected.to contain_file('/etc/nftables/puppet/FOO-BAR.nft').with( |
|
84 |
is_expected.to contain_file('/etc/nftables/puppet/custom-FOO-BAR.nft').with(
|
|
85 | 85 |
ensure: 'file', |
86 |
source: '/etc/nftables/puppet-preflight/FOO-BAR.nft', |
|
86 |
source: '/etc/nftables/puppet-preflight/custom-FOO-BAR.nft',
|
|
87 | 87 |
mode: '0640', |
88 | 88 |
) |
89 | 89 |
} |
Formats disponibles : Unified diff