Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3911697
D857.id2178.diff
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
D857.id2178.diff
View Options
diff --git a/UIDs b/UIDs
new file mode 100644
--- /dev/null
+++ b/UIDs
@@ -0,0 +1 @@
+830 odderon
diff --git a/roles/shellserver/odderon/files/odderon.sudoers b/roles/shellserver/odderon/files/odderon.sudoers
new file mode 100644
--- /dev/null
+++ b/roles/shellserver/odderon/files/odderon.sudoers
@@ -0,0 +1 @@
+%nasqueron-irc ALL=(odderon) NOPASSWD: ALL
diff --git a/roles/shellserver/odderon/init.sls b/roles/shellserver/odderon/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/shellserver/odderon/init.sls
@@ -0,0 +1,35 @@
+# -------------------------------------------------------------
+# Salt — Deploy Odderon (darkbot)
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-01-24
+# Description: Darkbot on Freenode
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# 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 %}
+ - source: salt://roles/shellserver/odderon/files/odderon.sudoers
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 03:39 (20 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307335
Default Alt Text
D857.id2178.diff (1 KB)
Attached To
Mode
D857: Create odderon service account on Eglide
Attached
Detach File
Event Timeline
Log In to Comment