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.
From REFERENCE.md:
Expected: setting this to true will remove unmanaged files from my jail.d directory
What actually happens: Nothing
Reason:
From config.pp:
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.