move the mysql::server::munin::base class to its own file
This commit is contained in:
parent
b1ef87fbda
commit
9871e9319c
2 changed files with 20 additions and 21 deletions
20
manifests/server/munin/base.pp
Normal file
20
manifests/server/munin/base.pp
Normal file
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,26 +1,5 @@
|
||||||
# manifests/server/munin/default.pp
|
# 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 {
|
class mysql::server::munin::default inherits mysql::server::munin::base {
|
||||||
case $munin_mysql_password {
|
case $munin_mysql_password {
|
||||||
'': { fail("please specify \$munin_mysql_password to enable mysql munin plugin")}
|
'': { fail("please specify \$munin_mysql_password to enable mysql munin plugin")}
|
||||||
|
|
Loading…
Reference in a new issue