From 25fbef80605b0ac7d29daf07d98f145f3f9936a6 Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 1 Jul 2008 18:29:30 +0000 Subject: merged with puzzle --- manifests/init.pp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'manifests/init.pp') diff --git a/manifests/init.pp b/manifests/init.pp index 47f580f..81feee0 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -22,13 +22,18 @@ class mysql::server { default: { include mysql::server::base } } - if $selinux { - include mysql::selinux + # avoid problem with bootstrapping + case $mysql_exists { + 'true': { + if $selinux { + include mysql::selinux + } + + if $use_munin { + include mysql::munin + } + } } - - if $use_munin { - include mysql::munin - } } class mysql::server::base { @@ -41,7 +46,7 @@ class mysql::server::base { source => [ "puppet://$server/files/mysql/${fqdn}/my.cnf", "puppet://$server/files/mysql/my.cnf", - "puppet://$server/mysql/config/${operatingsystem}/my.cnf", + "puppet://$server/mysql/config/my.cnf.${operatingsystem}", "puppet://$server/mysql/config/my.cnf" ], ensure => file, @@ -73,7 +78,7 @@ class mysql::server::base { } file{'/etc/cron.d/mysql_backup.cron': - source => [ "puppet://$server/mysql/backup/${operatingsystem}/mysql_backup.cron", + source => [ "puppet://$server/mysql/backup/mysql_backup.cron.${operatingsystem}", "puppet://$server/mysql/backup/mysql_backup.cron" ], require => [ Exec[set_mysql_rootpw], File['/root/.my.cnf'] ], owner => root, group => 0, mode => 0600; -- cgit v1.2.3