Not removing directory; use 'force' to override
Opened this issue · 4 comments
chrisongthb commented
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 6.23.0
- Ruby: ruby 2.5.9p229 (2021-04-05 revision 67939) [x86_64-linux]
- Distribution: Ubuntu 20.04
- Module version: v6.0.0
How to reproduce (e.g Puppet code you use)
The directory /etc/logrotate.d/hourly
has to be present. It was ceated by this module.
class { '::logrotate':
manage_cron_daily => true,
ensure_cron_daily => 'absent',
manage_cron_hourly => true,
ensure_cron_hourly => 'absent',
create_base_rules => false,
purge_configdir => false,
}
What are you seeing
At every Puppet Agent run it is logged, that Puppet won't remove the directory /etc/logrotate.d/hourly.
What behaviour did you expect instead
Puppet should remove the directory.
Output log
Notice: /Stage[main]/Logrotate::Hourly/File[/etc/logrotate.d/hourly]: Not removing directory; use 'force' to override
Notice: /Stage[main]/Logrotate::Hourly/File[/etc/logrotate.d/hourly]/ensure: removed (corrective)
Any additional information you'd like to impart
flynet70 commented
+1
REHICode commented
+1
shortspecialbus commented
I'm seeing this in RedHat 9 now as well, puppet 7.24.0, module version 7.0.1, presumably as a result of disabling cron in favor of the timer in the most recent update.
REHICode commented
+1