--- /dev/null
+# So munin can sudo to get to postfix queue info
+munin ALL=(postfix) SETENV: NOPASSWD: /etc/munin/plugins/postfix_mailqueue
+munin ALL=(munin) SETENV: NOPASSWD: ALL
xvm-munin-config (0.0.18) unstable; urgency=low
* Add xen_net munin plugin for monitoring network status.
+ * Use /etc/sudoers.d now that it exists, instead of appending to
+ /etc/sudoers
- -- Quentin Smith <quentin@mit.edu> Mon, 06 Jan 2014 01:41:38 -0500
+ -- Quentin Smith <quentin@mit.edu> Mon, 06 Jan 2014 02:10:49 -0500
xvm-munin-config (0.0.17) unstable; urgency=low
common/* .
+console/* .
debian/munin-node.conf.xvm.mako etc/munin
# So munin can read the mail log
adduser munin adm
- # So munin can sudo to get to postfix queue info
- cat >>/etc/sudoers <<EOF
-### BEGIN xvm-munin-config
-munin ALL=(postfix) SETENV: NOPASSWD: /etc/munin/plugins/postfix_mailqueue
-munin ALL=(munin) SETENV: NOPASSWD: ALL
-### END xvm-munin-config
-EOF
-
# Install munin plugins that are now configured
munin-node-configure --suggest --shell | sh
# So munin can read the mail log
adduser munin adm
- # So munin can sudo to get to postfix queue info
- # and smartctl info
- # and info about running domains
- cat >>/etc/sudoers <<EOF
-### BEGIN xvm-munin-config
-munin ALL=(postfix) SETENV: NOPASSWD: /etc/munin/plugins/postfix_mailqueue
-munin ALL=(munin) SETENV: NOPASSWD: ALL
-munin ALL=(root) SETENV: NOPASSWD: /etc/munin/plugins/hddtemp_smartctl , /etc/munin/plugins/smart_* , /etc/munin/plugins/xen_*
-### END xvm-munin-config
-EOF
-
# Install munin plugins that are now configured
munin-node-configure --suggest --shell | sh
configure)
# So munin can read the mail log
adduser munin adm
-
- # So munin can sudo to get to postfix queue info
- cat >>/etc/sudoers <<EOF
-### BEGIN xvm-munin-config
-munin ALL=(postfix) SETENV: NOPASSWD: /etc/munin/plugins/postfix_mailqueue
-munin ALL=(munin) SETENV: NOPASSWD: ALL
-### END xvm-munin-config
-EOF
-
+
# So munin can read from the database
su postgres -c 'createuser -S -D -R munin' || true
su postgres -c 'psql invirt --quiet' <<EOF
configure)
# So munin can read the mail log
adduser munin adm
-
- # So munin can sudo to get to postfix queue info
- cat >>/etc/sudoers <<EOF
-### BEGIN xvm-munin-config
-munin ALL=(postfix) SETENV: NOPASSWD: /etc/munin/plugins/postfix_mailqueue
-munin ALL=(munin) SETENV: NOPASSWD: ALL
-### END xvm-munin-config
-EOF
-
+
# Install munin plugins that are now configured
munin-node-configure --suggest --shell | sh
-
+
invoke-rc.d munin-node restart
;;
--- /dev/null
+# So munin can sudo to get to postfix queue info
+# and smartctl info
+# and info about running domains
+munin ALL=(postfix) SETENV: NOPASSWD: /etc/munin/plugins/postfix_mailqueue
+munin ALL=(munin) SETENV: NOPASSWD: ALL
+munin ALL=(root) SETENV: NOPASSWD: /etc/munin/plugins/hddtemp_smartctl , /etc/munin/plugins/smart_* , /etc/munin/plugins/xen_*
--- /dev/null
+# So munin can sudo to get to postfix queue info
+munin ALL=(postfix) SETENV: NOPASSWD: /etc/munin/plugins/postfix_mailqueue
+munin ALL=(munin) SETENV: NOPASSWD: ALL
--- /dev/null
+# So munin can sudo to get to postfix queue info
+munin ALL=(postfix) SETENV: NOPASSWD: /etc/munin/plugins/postfix_mailqueue
+munin ALL=(munin) SETENV: NOPASSWD: ALL