From: Paul Wise Date: Mon, 15 Dec 2014 22:46:45 +0000 (+0800) Subject: nagios needs to be able to run systemctl as root otherwise dbus is needed X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=ae3a3200421b2af4fab1194bb736773afd346991;p=mirror%2Fdsa-puppet.git nagios needs to be able to run systemctl as root otherwise dbus is needed --- diff --git a/modules/sudo/files/sudoers b/modules/sudo/files/sudoers index 9e9ac404b..140786222 100644 --- a/modules/sudo/files/sudoers +++ b/modules/sudo/files/sudoers @@ -50,6 +50,7 @@ root ALL=(ALL) ALL %zivit-admins ZIVITHOSTS=(ALL) NOPASSWD: ALL # nagios +nagios ALL=(ALL) NOPASSWD: /bin/systemctl is-system-running nagios MQ_HOSTS=(rabbitmq) NOPASSWD: /usr/sbin/rabbitmqctl list_queues -p dsa name messages consumers nagios ALL=(ALL) NOPASSWD: /usr/sbin/service ekeyd-egd-linux restart nagios ALL=(ALL) NOPASSWD: /usr/sbin/service samhain restart