Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3767918
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/wikidata-access-layer/init.sls b/roles/viperserv/wikidata-access-layer/config.sls
similarity index 58%
copy from roles/viperserv/wikidata-access-layer/init.sls
copy to roles/viperserv/wikidata-access-layer/config.sls
index 29bd18c..b780103 100644
--- a/roles/viperserv/wikidata-access-layer/init.sls
+++ b/roles/viperserv/wikidata-access-layer/config.sls
@@ -1,11 +1,14 @@
# -------------------------------------------------------------
# Salt — Deploy eggdrop park
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
-# Created: 2017-11-06
+# Created: 2017-11-15
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
-include:
- - .pywikibot
- - .code
+/srv/viperserv/user-config.py:
+ file.managed:
+ - source: salt://roles/viperserv/wikidata-access-layer/files/user-config.py
+ - user: viperserv
+ - group: nasqueron-irc
+ - chmod: 644
diff --git a/roles/viperserv/wikidata-access-layer/files/user-config.py b/roles/viperserv/wikidata-access-layer/files/user-config.py
new file mode 100644
index 0000000..2602b5d
--- /dev/null
+++ b/roles/viperserv/wikidata-access-layer/files/user-config.py
@@ -0,0 +1,20 @@
+# -------------------------------------------------------------
+# Pywikibot
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Created: 2017-11-15
+# License: Trivial work, not eligible to copyright
+# Source file: roles/viperserv/wikidata-access-layer/files/user-config.py
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+mylang = 'wikidata'
+family = 'wikidata'
+usernames['wikidata']['wikidata'] = u'DæghrefnBot'
+
+console_encoding = 'utf-8'
diff --git a/roles/viperserv/wikidata-access-layer/init.sls b/roles/viperserv/wikidata-access-layer/init.sls
index 29bd18c..11c1100 100644
--- a/roles/viperserv/wikidata-access-layer/init.sls
+++ b/roles/viperserv/wikidata-access-layer/init.sls
@@ -1,11 +1,12 @@
# -------------------------------------------------------------
# Salt — Deploy eggdrop park
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-11-06
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
include:
- .pywikibot
- .code
+ - .config
diff --git a/roles/viperserv/wikidata-access-layer/pywikibot.sls b/roles/viperserv/wikidata-access-layer/pywikibot.sls
index f5db3cd..6c8c58e 100644
--- a/roles/viperserv/wikidata-access-layer/pywikibot.sls
+++ b/roles/viperserv/wikidata-access-layer/pywikibot.sls
@@ -1,26 +1,33 @@
# -------------------------------------------------------------
# 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
+
+pywikibot_install_package:
+ cmd.run:
+ - name: python3 setup.py install
+ - cwd: /opt/pywikibot
+ - onchanges:
+ - git: pywikibot_software
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Nov 25, 04:15 (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2256163
Default Alt Text
(3 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment