Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11709112
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
View Options
diff --git a/roles/shellserver/odderon/account.sls b/roles/shellserver/odderon/account.sls
index 95ec83f..274324b 100644
--- a/roles/shellserver/odderon/account.sls
+++ b/roles/shellserver/odderon/account.sls
@@ -1,36 +1,34 @@
# -------------------------------------------------------------
# Salt — Deploy Odderon (darkbot)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-01-24
# Description: Darkbot on Freenode
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
+{% from "map.jinja" import dirs with context %}
+
# -------------------------------------------------------------
# Service account
# -------------------------------------------------------------
odderon_account:
user.present:
- name: odderon
- fullname: Odderon
- uid: 830
- gid: 829
- home: /opt/odderon
# -------------------------------------------------------------
# Sudo capabilities
#
# Members of nasqueron-irc should be able to sudo -u odderon …
# -------------------------------------------------------------
odderon_sudo_capabilities_file:
file.managed:
- {% if grains['os'] == 'FreeBSD' %}
- - name: /usr/local/etc/sudoers.d/odderon
- {% else %}
- - name: /etc/sudoers.d/odderon
- {% endif %}
+ - name: {{ dirs.etc }}/sudoers.d/odderon
- source: salt://roles/shellserver/odderon/files/odderon.sudoers
- template: jinja
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Sep 15, 08:42 (7 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2983930
Default Alt Text
(1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment