Skip to content

Removing a non-empty directory $var_net_snmp #293

Description

@j0rewqa

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions