Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768302
D1180.id3023.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D1180.id3023.diff
View Options
diff --git a/roles/viperserv/init.sls b/roles/viperserv/init.sls
--- a/roles/viperserv/init.sls
+++ b/roles/viperserv/init.sls
@@ -17,3 +17,4 @@
include:
- .eggdrop
+ - .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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 07:25 (17 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259720
Default Alt Text
D1180.id3023.diff (2 KB)
Attached To
Mode
D1180: Install Wikidata access layer for Dæghrefn on viperserv role
Attached
Detach File
Event Timeline
Log In to Comment