# file: wp-config.php
# owner: root
# group: root
user::r--
user:www-data:r-- #effective:---
group::---
mask::---
other::---If the file changes, fooacl on its own won't notice the change and won't reset the ACLs. You need to notify the class to ensure it does catch this. We have something like this for ours that we put after the fooacl resource:
File[<filename>] ~> Class['::fooacl']Hopefully this helps.
concat { "${wp_root}/wp-config.php":
mode => '0400',
require => Wpcli::Core::Download["download_wordpress_${title}"],
notify => Class['::fooacl'],
}
fooacl::conf { "allow_${wordpress::wp_owner}_wp_config_${title}":
target => "${wp_root}/wp-config.php",
permissions => [ "user:${wordpress::wp_owner}:r" ],
require => Concat[ "${wp_root}/wp-config.php" ],
}