Page MenuHomeDevCentral

D888.diff
No OneTemporary

D888.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
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)

Event Timeline