Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3918612
D888.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
788 B
Referenced Files
None
Subscribers
None
D888.diff
View Options
diff --git a/roles/shellserver/odderon/account.sls b/roles/shellserver/odderon/account.sls
--- a/roles/shellserver/odderon/account.sls
+++ b/roles/shellserver/odderon/account.sls
@@ -33,3 +33,4 @@
- name: /etc/sudoers.d/odderon
{% endif %}
- source: salt://roles/shellserver/odderon/files/odderon.sudoers
+ - template: jinja
diff --git a/roles/shellserver/odderon/files/odderon.sudoers b/roles/shellserver/odderon/files/odderon.sudoers
--- a/roles/shellserver/odderon/files/odderon.sudoers
+++ b/roles/shellserver/odderon/files/odderon.sudoers
@@ -1 +1,6 @@
%nasqueron-irc ALL=(odderon) NOPASSWD: ALL
+
+# Service management
+{% for command in ["start", "stop", "restart", "reload"] %}
+%nasqueron-irc ALL= NOPASSWD: /bin/systemctl {{ command }} odderon
+{% endfor %}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 07:37 (13 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2309246
Default Alt Text
D888.diff (788 B)
Attached To
Mode
D888: Allow nasqueron-irc to control Odderon service
Attached
Detach File
Event Timeline
Log In to Comment