Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768354
D1206.id3093.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1206.id3093.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 07:38 (20 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259744
Default Alt Text
D1206.id3093.diff (1 KB)
Attached To
Mode
D1206: Provide sudoers template for viperserv role
Attached
Detach File
Event Timeline
Log In to Comment