Page MenuHomeDevCentral

D1180.id3095.diff
No OneTemporary

D1180.id3095.diff

diff --git a/roles/viperserv/init.sls b/roles/viperserv/init.sls
--- a/roles/viperserv/init.sls
+++ b/roles/viperserv/init.sls
@@ -19,3 +19,4 @@
- .account
- .eggdrop
- .fantoir
+ - .wikidata-access-layer
diff --git a/roles/viperserv/wikidata-access-layer/code.sls b/roles/viperserv/wikidata-access-layer/code.sls
new file mode 100644
--- /dev/null
+++ b/roles/viperserv/wikidata-access-layer/code.sls
@@ -0,0 +1,16 @@
+# -------------------------------------------------------------
+# Salt — Deploy eggdrop park
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-11-06
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+daeghrefn_wikidata_access_layer:
+ file.directory:
+ - name: /srv/wikidata-access-layer
+ - user: deploy
+ git.latest:
+ - name: https://devcentral.nasqueron.org/source/Daeghrefn-Wikidata.git
+ - target: /srv/wikidata-access-layer
+ - user: deploy
diff --git a/roles/viperserv/wikidata-access-layer/init.sls b/roles/viperserv/wikidata-access-layer/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/viperserv/wikidata-access-layer/init.sls
@@ -0,0 +1,11 @@
+# -------------------------------------------------------------
+# Salt — Deploy eggdrop park
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-11-06
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+include:
+ - .pywikibot
+ - .code
diff --git a/roles/viperserv/wikidata-access-layer/pywikibot.sls b/roles/viperserv/wikidata-access-layer/pywikibot.sls
new file mode 100644
--- /dev/null
+++ b/roles/viperserv/wikidata-access-layer/pywikibot.sls
@@ -0,0 +1,26 @@
+# -------------------------------------------------------------
+# Salt — Deploy eggdrop park
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-11-06
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% from "map.jinja" import packages_prefixes with context %}
+
+pywikibot_dependencies:
+ pkg.installed:
+ - pkgs:
+ - {{ packages_prefixes.python3 }}requests
+
+pywikibot_software:
+ file.directory:
+ - name: /opt/pywikibot
+ - user: deploy
+ git.latest:
+ - name: https://gerrit.wikimedia.org/r/pywikibot/core.git
+ - submodules: True
+ - target: /opt/pywikibot
+ - user: deploy
+ - require:
+ - pkg: pywikibot_dependencies

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 06:38 (20 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259444
Default Alt Text
D1180.id3095.diff (2 KB)

Event Timeline