We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 696aff6 + 232ef18 commit ee51d4cCopy full SHA for ee51d4c
manifests/server/config.pp
@@ -17,6 +17,16 @@
17
recurse => $mysql::server::purge_conf_dir,
18
purge => $mysql::server::purge_conf_dir,
19
}
20
+
21
+ # on some systems this is /etc/my.cnf.d, while Debian has /etc/mysql/conf.d and FreeBSD something in /usr/local. For the latter systems,
22
+ # managing this basedir is also required, to have it available before the package is installed.
23
+ $includeparentdir = mysql_dirname($includedir)
24
+ if $includeparentdir != '/' and $includeparentdir != '/etc' {
25
+ file { $includeparentdir:
26
+ ensure => directory,
27
+ mode => '0755',
28
+ }
29
30
31
32
$logbin = pick($options['mysqld']['log-bin'], $options['mysqld']['log_bin'], false)
0 commit comments