Page MenuHomeDevCentral

D1206.id3093.diff
No OneTemporary

D1206.id3093.diff

diff --git a/roles/viperserv/account/files/viperserv.sudoers b/roles/viperserv/account/files/viperserv.sudoers
new file mode 100644
--- /dev/null
+++ b/roles/viperserv/account/files/viperserv.sudoers
@@ -0,0 +1,27 @@
+# -------------------------------------------------------------
+# ViperServ
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-11-14
+# License: Trivial work, not eligible to copyright
+# Source file: roles/viperserv/account/files/viperserv.sudoers
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+{% for account in accounts %}
+%nasqueron-irc ALL=({{ account }}) NOPASSWD: ALL{% endfor %}
+
+# Service management
+{% for bot in bots %}
+{% for command in ["start", "stop", "restart"] %}
+%nasqueron-irc ALL= NOPASSWD: /usr/sbin/service {{ bot }} {{ command }}
+%nasqueron-irc ALL= NOPASSWD: /usr/sbin/service {{ bot }} one{{ command }}
+{% endfor %}
+%nasqueron-irc ALL= NOPASSWD: /usr/local/etc/rc.d/{{ bot }}
+{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 01:40 (51 m, 36 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264056
Default Alt Text
D1206.id3093.diff (1 KB)

Event Timeline