From 9871e9319c123e2edead294c1645b2baca2fc8a6 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 26 Oct 2010 11:28:17 -0400 Subject: [PATCH] move the mysql::server::munin::base class to its own file --- manifests/server/munin/base.pp | 20 ++++++++++++++++++++ manifests/server/munin/default.pp | 21 --------------------- 2 files changed, 20 insertions(+), 21 deletions(-) create mode 100644 manifests/server/munin/base.pp diff --git a/manifests/server/munin/base.pp b/manifests/server/munin/base.pp new file mode 100644 index 0000000..a5331c5 --- /dev/null +++ b/manifests/server/munin/base.pp @@ -0,0 +1,20 @@ +class mysql::server::munin::base { + + file { + "/usr/local/share/munin-plugins/mysql_connections": + source => "$fileserver/munin/mysql_connections", + mode => 0755, owner => root, group => root; + + "/usr/local/share/munin-plugins/mysql_qcache": + source => "$fileserver/munin/mysql_qcache", + mode => 0755, owner => root, group => root; + + "/usr/local/share/munin-plugins/mysql_qcache_mem": + source => "$fileserver/munin/mysql_qcache_mem", + mode => 0755, owner => root, group => root; + + "/usr/local/share/munin-plugins/mysql_size_all": + source => "$fileserver/munin/mysql_size_all", + mode => 0755, owner => root, group => root; + } +} diff --git a/manifests/server/munin/default.pp b/manifests/server/munin/default.pp index 3b3d361..bd68e42 100644 --- a/manifests/server/munin/default.pp +++ b/manifests/server/munin/default.pp @@ -1,26 +1,5 @@ # manifests/server/munin/default.pp -class mysql::server::munin::base { - - file { - "/usr/local/share/munin-plugins/mysql_connections": - source => "$fileserver/munin/mysql_connections", - mode => 0755, owner => root, group => root; - - "/usr/local/share/munin-plugins/mysql_qcache": - source => "$fileserver/munin/mysql_qcache", - mode => 0755, owner => root, group => root; - - "/usr/local/share/munin-plugins/mysql_qcache_mem": - source => "$fileserver/munin/mysql_qcache_mem", - mode => 0755, owner => root, group => root; - - "/usr/local/share/munin-plugins/mysql_size_all": - source => "$fileserver/munin/mysql_size_all", - mode => 0755, owner => root, group => root; - } -} - class mysql::server::munin::default inherits mysql::server::munin::base { case $munin_mysql_password { '': { fail("please specify \$munin_mysql_password to enable mysql munin plugin")}