Page MenuHomeDevCentral

D1211.id3117.diff
No OneTemporary

D1211.id3117.diff

diff --git a/roles/viperserv/eggdrop/files/eggdrop-bot.conf b/roles/viperserv/eggdrop/files/eggdrop-bot.conf
--- a/roles/viperserv/eggdrop/files/eggdrop-bot.conf
+++ b/roles/viperserv/eggdrop/files/eggdrop-bot.conf
@@ -52,7 +52,7 @@
# MySQL
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-load lib/fbsql/fbsql.so
+load lib/fbsql.so
# -------------------------------------------------------------
# Eggdrop modules
diff --git a/roles/viperserv/eggdrop/software.sls b/roles/viperserv/eggdrop/software.sls
--- a/roles/viperserv/eggdrop/software.sls
+++ b/roles/viperserv/eggdrop/software.sls
@@ -61,6 +61,12 @@
- cmd: eggdrop_software
{% endfor %}
+/srv/viperserv/lib:
+ file.directory:
+ - user: viperserv
+ - group: nasqueron-irc
+ - dir_mode: 770
+
/srv/viperserv/logs:
file.directory:
- user: viperserv
diff --git a/roles/viperserv/fbsql/init.sls b/roles/viperserv/fbsql/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/viperserv/fbsql/init.sls
@@ -0,0 +1,40 @@
+# -------------------------------------------------------------
+# Salt — Deploy eggdrop park
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-11-15
+# License: Trivial work, not eligible to copyright
+# Data license: FANTOIR is licensed under Licence Ouverte
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Build fbsql
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+fbsql_repo:
+ file.directory:
+ - name: /opt/fbsql
+ - user: builder
+ - group: deployment
+ - dir_mode: 755
+ git.latest:
+ - name: https://devcentral.nasqueron.org/source/fbsql.git
+ - target: /opt/fbsql
+ - user: builder
+
+fbsql_build:
+ cmd.run:
+ - name: gmake
+ - runas: builder
+ - cwd: /opt/fbsql
+ - creates: /opt/fbsql/fbsql.so
+
+# -------------------------------------------------------------
+# Install fbsql
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/srv/viperserv/lib/fbsql.so:
+ file.symlink:
+ - target: /opt/fbsql/fbsql.so
+ - user: viperserv
+ - group: nasqueron-irc
diff --git a/roles/viperserv/init.sls b/roles/viperserv/init.sls
--- a/roles/viperserv/init.sls
+++ b/roles/viperserv/init.sls
@@ -18,5 +18,6 @@
include:
- .account
- .eggdrop
+ - .fbsql
- .fantoir
- .wikidata-access-layer

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 00:15 (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2267595
Default Alt Text
D1211.id3117.diff (2 KB)

Event Timeline