puppet-openvpn
puppet-openvpn copied to clipboard
Cleanup of old client configurations
It would be helpful, particularly for large deployments, if this module deleted client configurations when their openvpn::client and openvpn::client_specific_config are no longer present.
Else, we end up with many old files left behind that are not useful and clutter the client-configs directory.
I know this can probably done by setting ensure to absent (and then removing the declaration entirely), but the cleanup that appears to be performed for the download-configs directory should also apply to client-configs.
I can't think of a use case where you'd need 'client specific config' but not a matching configuration and certificate available for download and distribution by puppet.
Hi @jameskirsop looks a good idea.
Can you propose a PR ?