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

Removing a non-empty directory $var_net_snmp #293

Open
j0rewqa opened this issue Jul 14, 2024 · 0 comments
Open

Removing a non-empty directory $var_net_snmp #293

j0rewqa opened this issue Jul 14, 2024 · 0 comments

Comments

@j0rewqa
Copy link

j0rewqa commented Jul 14, 2024

Affected Puppet, Ruby, OS and module versions/distributions

  • OS: CentOS 8
  • Module version: 7.0.0 and 7.1.0

How to reproduce (e.g Puppet code you use)

  1. class { 'snmp': ensure => 'present' }
  2. class { 'snmp': ensure => 'absent' } <-- error

What are you seeing

$var_net_snmp_ensure = absent

file { 'var-net-snmp':
ensure => $var_net_snmp_ensure,
path => $var_net_snmp,
owner => $varnetsnmp_owner,
group => $varnetsnmp_group,
mode => $varnetsnmp_perms,
require => $manage_snmp_conf_requires,
}

Attempts to delete a non-empty directory /var/lib/net-snmp

What behaviour did you expect instead

Forced recursive removal of a directory or not managing it

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

1 participant