Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not removing directory; use 'force' to override #187

Open
chrisongthb opened this issue Nov 22, 2021 · 4 comments
Open

Not removing directory; use 'force' to override #187

chrisongthb opened this issue Nov 22, 2021 · 4 comments

Comments

@chrisongthb
Copy link

chrisongthb commented Nov 22, 2021

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
Copy link

+1

1 similar comment
@REHICode
Copy link

+1

@shortspecialbus
Copy link

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
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants