Révision 0b7bcb5d
Align filemode on RedHat to distro default
The RPM acutally ships the configuration and directory with
0600/0700 while this module sets the mode to 0640/0750.
However, this has the drawback that on new nftables RPM versions,
we are setting it back to the modules mode and triggering an nft
validate.
spec/classes/masquerade_spec.rb | ||
---|---|---|
9 | 9 |
context "on #{os}" do |
10 | 10 |
let(:facts) { os_facts } |
11 | 11 |
|
12 |
nft_mode = case os_facts[:os]['family'] |
|
13 |
when 'RedHat' |
|
14 |
'0600' |
|
15 |
else |
|
16 |
'0640' |
|
17 |
end |
|
18 |
|
|
12 | 19 |
context 'with masquerade' do |
13 | 20 |
let(:pre_condition) do |
14 | 21 |
' |
... | ... | |
41 | 48 |
path: '/etc/nftables/puppet-preflight/ip-nat-chain-POSTROUTING.nft', |
42 | 49 |
owner: 'root', |
43 | 50 |
group: 'root', |
44 |
mode: '0640',
|
|
51 |
mode: nft_mode,
|
|
45 | 52 |
ensure_newline: true |
46 | 53 |
) |
47 | 54 |
} |
Formats disponibles : Unified diff