Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3942353
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/UIDs b/UIDs
new file mode 100644
index 0000000..845afb5
--- /dev/null
+++ b/UIDs
@@ -0,0 +1 @@
+830 odderon
diff --git a/roles/shellserver/odderon/account.sls b/roles/shellserver/odderon/account.sls
new file mode 100644
index 0000000..074c5e1
--- /dev/null
+++ b/roles/shellserver/odderon/account.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
diff --git a/roles/shellserver/odderon/files/odderon.sudoers b/roles/shellserver/odderon/files/odderon.sudoers
new file mode 100644
index 0000000..bf9a32d
--- /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
index 0000000..5bb09f8
--- /dev/null
+++ b/roles/shellserver/odderon/init.sls
@@ -0,0 +1,10 @@
+# -------------------------------------------------------------
+# Salt — Deploy Odderon (darkbot)
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-01-25
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+include:
+ - .account
diff --git a/top.sls b/top.sls
index f91d9a0..d26cf6c 100644
--- a/top.sls
+++ b/top.sls
@@ -1,21 +1,22 @@
# -------------------------------------------------------------
# Salt configuration for Nasqueron servers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2016-04-10
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
base:
'*':
- roles/core/rc
- roles/core/hostname
- roles/core/network
- roles/core/motd
- roles/core/rsyslog
'eglide':
- roles/shellserver/users
- roles/shellserver/userland-software
- roles/shellserver/eglide-website
- roles/shellserver/vhosts
- roles/shellserver/web-hosting
+ - roles/shellserver/odderon
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Dec 26, 16:12 (7 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2315134
Default Alt Text
(3 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment