Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768122
D1180.id3095.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.id3095.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
@@ -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
Details
Attached
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)
Attached To
Mode
D1180: Install Wikidata access layer for Dæghrefn on viperserv role
Attached
Detach File
Event Timeline
Log In to Comment