Projet

Général

Profil

Révision 0b7bcb5d

ID0b7bcb5de9fe26c617dda5ba3e1c8e9310296a24
Parent 0e7fe75e
Enfant 069c9fd2

Ajouté par mh il y a plus de 2 ans

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.

Voir les différences:

manifests/chain.pp
15 15
      path           => "/etc/nftables/puppet-preflight/${table}-chain-${chain}.nft",
16 16
      owner          => root,
17 17
      group          => root,
18
      mode           => '0640',
18
      mode           => $nftables::default_config_mode,
19 19
      ensure_newline => true,
20 20
      require        => Package['nftables'],
21 21
  } ~> Exec['nft validate'] -> file {
......
24 24
      source => "/etc/nftables/puppet-preflight/${table}-chain-${chain}.nft",
25 25
      owner  => root,
26 26
      group  => root,
27
      mode   => '0640',
27
      mode   => $nftables::default_config_mode,
28 28
  } ~> Service['nftables']
29 29

  
30 30
  concat::fragment {

Formats disponibles : Unified diff