Skip to content

Parameter config_dir_purge does not work as expected #259

Description

@robbevl

From REFERENCE.md:

config_dir_purge
Data type: Boolean

Determines if unmanaged configuration files should be removed.

Default value: false

Expected: setting this to true will remove unmanaged files from my jail.d directory
What actually happens: Nothing

Reason:

From config.pp:

  file { 'fail2ban.dir':
    ensure  => $fail2ban::config_dir_ensure,
    path    => $fail2ban::config_dir_path,
    force   => $fail2ban::config_dir_purge,
    notify  => $fail2ban::config_file_notify,
    require => $fail2ban::config_file_require,
  }

It seems, when package_ensure is "purged", config_dir_purge will make sure the config directory (/etc/fail2ban) is removed.
But it does not purge unmanaged configuration files, so it seems the documentation is misleading here.

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