Page MenuHomeDevCentral

D888.id2257.diff
No OneTemporary

D888.id2257.diff

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

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)

Event Timeline