puppetlabs-mysql icon indicating copy to clipboard operation
puppetlabs-mysql copied to clipboard

$includedir is not purged when provider = MariaDB

Open bschonec opened this issue 2 years ago • 1 comments

Describe the Bug

The $includedir (/etc/my.cnf.d) is not purged when the provider is MariaDB because $includedir is undefined.

Expected Behavior

$includedir to be purged of extraneous files.

Steps to Reproduce

Steps to reproduce the behavior:

  1. ensure $mysql::server::purge_conf_dir: true
  2. Use this module to install MariaDB on RHEL7 or newer.
  3. Observe that $includedir is not purged of extraneous files

Environment

  • Version >= 13.0.0
  • Platform Red Hat 7 or greater

Additional Context

Why ISN'T $includedir defined?

bschonec avatar Aug 04 '23 13:08 bschonec

Why is special consideration given to the mariadb provider and its parent directory as shown here? There's no purge/recurse facility for the directory resource.

https://github.com/bschonec/puppetlabs-mysql/tree/maraidb_purge_includedir

bschonec avatar Aug 04 '23 13:08 bschonec