Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769789
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/roles/viperserv/init.sls b/roles/viperserv/init.sls
index af4bf4a..9cb4254 100644
--- a/roles/viperserv/init.sls
+++ b/roles/viperserv/init.sls
@@ -1,21 +1,22 @@
# -------------------------------------------------------------
# Salt — Deploy eggdrop park
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-11-05
# License: Trivial work, not eligible to copyright
# _ ___ _____
# | | / (_)___ ___ _____/ ___/___ ______ __
# | | / / / __ \/ _ \/ ___/\__ \/ _ \/ ___/ | / /
# | |/ / / /_/ / __/ / ___/ / __/ / | |/ /
# |___/_/ .___/\___/_/ /____/\___/_/ |___/
# /_/
#
# [ 1993 technology for 2017 hackers ]
#
# -------------------------------------------------------------
include:
- .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
index 0000000..ccaba59
--- /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
index 0000000..29bd18c
--- /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
index 0000000..06c1b2c
--- /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/x-diff
Expires
Mon, Nov 25, 16:56 (22 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259485
Default Alt Text
(3 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment