Commit 1efc5939 authored by micah's avatar micah 💬
Browse files

lint party

parent 41b24045
......@@ -8,71 +8,81 @@
class sympa::munin {
file {
"/usr/local/share/munin-plugins/sympa_queue":
source => "puppet://$server/modules/sympa/munin/sympa_queue",
mode => 0755, owner => root, group => root;
'/usr/local/share/munin-plugins/sympa_queue':
source => 'puppet:///modules/sympa/munin/sympa_queue',
mode => '0755',
owner => root,
group => root;
"/usr/local/share/munin-plugins/sympa_stats":
source => "puppet://$server/modules/sympa/munin/sympa_stats",
mode => 0755, owner => root, group => root;
'/usr/local/share/munin-plugins/sympa_stats':
source => 'puppet:///modules/sympa/munin/sympa_stats',
mode => '0755',
owner => root,
group => root;
"/usr/local/share/munin-plugins/sympa_subscribers":
source => "puppet://$server/modules/sympa/munin/sympa_subscribers",
mode => 0755, owner => root, group => root;
'/usr/local/share/munin-plugins/sympa_subscribers':
source => 'puppet:///modules/sympa/munin/sympa_subscribers',
mode => '0755',
owner => root,
group => root;
"/usr/local/share/munin-plugins/sympa_lists":
source => "puppet://$server/modules/sympa/munin/sympa_lists",
mode => 0755, owner => root, group => root;
'/usr/local/share/munin-plugins/sympa_lists':
source => 'puppet:///modules/sympa/munin/sympa_lists',
mode => '0755',
owner => root,
group => root;
"/usr/local/share/munin-plugins/sympa_users":
source => "puppet://$server/modules/sympa/munin/sympa_users",
mode => 0755, owner => root, group => root;
'/usr/local/share/munin-plugins/sympa_users':
source => 'puppet:///modules/sympa/munin/sympa_users',
mode => '0755',
owner => root,
group => root;
}
munin::plugin {
munin::plugin {
# only needs to run ps, so can run as munin
"sympaps":
ensure => "multips",
'sympaps':
ensure => 'multips',
config => "user munin\nenv.names wwsympa sympa archived task_manager bounced bulk\nenv.regex_sympa ^[0-9]* /usr/bin/perl /home/sympa/bin/sympa.pl\nenv.regex_archived ^[0-9]* /usr/bin/perl /home/sympa/bin/archived.pl\nenv.regex_task_manager ^[0-9]* /usr/bin/perl /home/sympa/bin/task_manager.pl\nenv.regex_bounced ^[0-9]* /usr/bin/perl /home/sympa/bin/bounced.pl\nenv.regex_bulk ^[0-9]* /usr/bin/perl /home/sympa/bin/bulk.pl\n";
}
munin::plugin {
# only needs to run find in spool/ dirs, so can run as munin
"sympa_queue":
ensure => "sympa_queue",
config => "user munin\nenv.spooldir /home/sympa/spool\n",
script_path_in => "/usr/local/share/munin-plugins";
'sympa_queue':
ensure => 'sympa_queue',
config => "user munin\nenv.spooldir /home/sympa/spool\n",
script_path_in => '/usr/local/share/munin-plugins';
}
munin::plugin {
# needs to be able to read logs in /var/log/sympa
"sympa_stats":
ensure => "sympa_stats",
config => "user root\nenv.logfile /var/log/sympa/sympa.log\n",
script_path_in => "/usr/local/share/munin-plugins";
'sympa_stats':
ensure => 'sympa_stats',
config => "user root\nenv.logfile /var/log/sympa/sympa.log\n",
script_path_in => '/usr/local/share/munin-plugins';
}
munin::plugin {
# needs db access, can run as munin
"sympa_subscribers":
ensure => "sympa_subscribers",
config => "user munin\n",
script_path_in => "/usr/local/share/munin-plugins";
'sympa_subscribers':
ensure => 'sympa_subscribers',
config => "user munin\n",
script_path_in => '/usr/local/share/munin-plugins';
}
munin::plugin {
# needs db access, can run as munin
"sympa_lists":
ensure => "sympa_lists",
config => "user munin\n",
script_path_in => "/usr/local/share/munin-plugins";
'sympa_lists':
ensure => 'sympa_lists',
config => "user munin\n",
script_path_in => '/usr/local/share/munin-plugins';
}
munin::plugin {
# needs db access, can run as munin
"sympa_users":
ensure => "sympa_users",
config => "user munin\n",
script_path_in => "/usr/local/share/munin-plugins";
'sympa_users':
ensure => 'sympa_users',
config => "user munin\n",
script_path_in => '/usr/local/share/munin-plugins';
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment