Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769015
D888.id2257.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.id2257.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
Sun, Nov 24, 12:06 (10 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260139
Default Alt Text
D888.id2257.diff (788 B)
Attached To
Mode
D888: Allow nasqueron-irc to control Odderon service
Attached
Detach File
Event Timeline
Log In to Comment