Page MenuHomeDevCentral

D861.id2185.diff
No OneTemporary

D861.id2185.diff

diff --git a/roles/shellserver/odderon/code.sls b/roles/shellserver/odderon/code.sls
new file mode 100644
--- /dev/null
+++ b/roles/shellserver/odderon/code.sls
@@ -0,0 +1,28 @@
+# -------------------------------------------------------------
+# Salt — Deploy Odderon (darkbot)
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-01-25
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+darkbot_repo:
+ file.directory:
+ - name: /opt/darkbot
+ - user: odderon
+ - group: nasqueron-irc
+ - dir_mode: 755
+ git.latest:
+ - name: https://devcentral.nasqueron.org/source/darkbot.git
+ - branch: production
+ - target: /opt/darkbot
+ - user: odderon
+ - unless: test -f /opt/odderon/LOCKED
+
+darkbot_build:
+ cmd.run:
+ - name: sh build.sh
+ - cwd: /opt/darkbot
+ - runas: odderon
+ - require:
+ - git: darkbot_repo
diff --git a/roles/shellserver/odderon/init.sls b/roles/shellserver/odderon/init.sls
--- a/roles/shellserver/odderon/init.sls
+++ b/roles/shellserver/odderon/init.sls
@@ -8,3 +8,4 @@
include:
- .account
+ - .code

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 20, 03:19 (20 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2361516
Default Alt Text
D861.id2185.diff (1 KB)

Event Timeline