From 5aad9f8c9219b977e7e94d502acc45780e81bbf4 Mon Sep 17 00:00:00 2001 From: Peter Vandoros Date: Tue, 21 Nov 2017 23:25:19 +1100 Subject: [PATCH] Ensure my-default.cnf file can be found when initialising databases --- manifests/config.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manifests/config.pp b/manifests/config.pp index 9edacbe..2d9d835 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -39,6 +39,11 @@ notify => Service['mysql'] ; } + file { "${globalconfigprefix}/my-default.cnf": + ensure => 'link', + target => "${configdir}/my.cnf", + } + -> exec { 'init-mysql-db': command => "${bindir}/mysql_install_db \