Page MenuHomeDevCentral

No OneTemporary

diff --git a/roles/shellserver/odderon/code.sls b/roles/shellserver/odderon/code.sls
index 2e0008e..4e70993 100644
--- a/roles/shellserver/odderon/code.sls
+++ b/roles/shellserver/odderon/code.sls
@@ -1,35 +1,44 @@
# -------------------------------------------------------------
# Salt — Deploy Odderon (darkbot)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-01-25
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import utilities with context %}
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.script:
- source: salt://roles/shellserver/odderon/files/build.sh.jinja
- args: "--with-sleep=0 --with-add=0 --with-del=0 --with-random=0"
- template: jinja
- context:
gmake: {{ utilities.gmake }}
- cwd: /opt/darkbot
- runas: odderon
- onchanges:
- git: darkbot_repo
- unless: test -f /opt/odderon/LOCKED
+
+darkbot_install:
+ cmd.run:
+ - name: make install
+ - cwd: /opt/darkbot/build
+ - runas: odderon
+ - onchanges:
+ - cmd: darkbot_build
+ - unless: test -f /opt/odderon/LOCKED

File Metadata

Mime Type
text/x-diff
Expires
Fri, Sep 19, 00:58 (22 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2992014
Default Alt Text
(1 KB)

Event Timeline