summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-10-26 11:28:17 -0400
committerMicah Anderson <micah@riseup.net>2010-10-26 11:28:17 -0400
commit9871e9319c123e2edead294c1645b2baca2fc8a6 (patch)
tree5e7f532ff8b0d409972356d2124324c1ad8c4f36 /manifests
parentb1ef87fbdacc19fe8f1c56b520e1f870661f688c (diff)
move the mysql::server::munin::base class to its own file
Diffstat (limited to 'manifests')
-rw-r--r--manifests/server/munin/base.pp20
-rw-r--r--manifests/server/munin/default.pp21
2 files changed, 20 insertions, 21 deletions
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")}