Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
riseup-puppet-recipes
sympa
Commits
4c6a7ecb
Commit
4c6a7ecb
authored
Jul 10, 2012
by
taggart
Browse files
drop root where possible, add notes about what plugins need access to
parent
cd96c114
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/munin.pp
View file @
4c6a7ecb
# FIXME right now this class has some hard coded paths to the sympa spool, logs, etc.
# sympa munin plugins
# some of these plugins need database access, ensure that the munin user
# has access by giving that user a .my.cnf file that gives them read-only
# access to whereever the database is
# FIXME right now this class has some hard coded paths to the sympa spool,
# logs, etc.
class
sympa::munin
{
...
...
@@ -25,19 +30,22 @@ class sympa::munin {
}
munin::plugin
{
# only needs to run ps, so can run as munin
"sympaps"
:
ensure
=>
"multips"
,
config
=>
"user
root
\n
env.names wwsympa sympa archived task_manager bounced bulk
\n
env.regex_sympa ^[0-9]* /usr/bin/perl /home/sympa/bin/sympa.pl
\n
env.regex_archived ^[0-9]* /usr/bin/perl /home/sympa/bin/archived.pl
\n
env.regex_task_manager ^[0-9]* /usr/bin/perl /home/sympa/bin/task_manager.pl
\n
env.regex_bounced ^[0-9]* /usr/bin/perl /home/sympa/bin/bounced.pl
\n
env.regex_bulk ^[0-9]* /usr/bin/perl /home/sympa/bin/bulk.pl
\n
"
;
config
=>
"user
munin
\n
env.names wwsympa sympa archived task_manager bounced bulk
\n
env.regex_sympa ^[0-9]* /usr/bin/perl /home/sympa/bin/sympa.pl
\n
env.regex_archived ^[0-9]* /usr/bin/perl /home/sympa/bin/archived.pl
\n
env.regex_task_manager ^[0-9]* /usr/bin/perl /home/sympa/bin/task_manager.pl
\n
env.regex_bounced ^[0-9]* /usr/bin/perl /home/sympa/bin/bounced.pl
\n
env.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
root
\n
env.spooldir /home/sympa/spool
\n
"
,
config
=>
"user
munin
\n
env.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
\n
env.logfile /var/log/sympa/sympa.log
\n
"
,
...
...
@@ -45,23 +53,26 @@ class sympa::munin {
}
munin::plugin
{
# needs db access, can run as munin
"sympa_subscribers"
:
ensure
=>
"sympa_subscribers"
,
config
=>
"user
root
\n
"
,
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
root
\n
"
,
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
root
\n
"
,
config
=>
"user
munin
\n
"
,
script_path_in
=>
"/usr/local/share/munin-plugins"
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment