Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768327
D1218.id3134.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
D1218.id3134.diff
View Options
diff --git a/roles/viperserv/wikidata-access-layer/init.sls b/roles/viperserv/wikidata-access-layer/config.sls
copy from roles/viperserv/wikidata-access-layer/init.sls
copy to roles/viperserv/wikidata-access-layer/config.sls
--- a/roles/viperserv/wikidata-access-layer/init.sls
+++ b/roles/viperserv/wikidata-access-layer/config.sls
@@ -2,10 +2,13 @@
# 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
--- /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
--- a/roles/viperserv/wikidata-access-layer/init.sls
+++ b/roles/viperserv/wikidata-access-layer/init.sls
@@ -9,3 +9,4 @@
include:
- .pywikibot
- .code
+ - .config
diff --git a/roles/viperserv/wikidata-access-layer/pywikibot.sls b/roles/viperserv/wikidata-access-layer/pywikibot.sls
--- a/roles/viperserv/wikidata-access-layer/pywikibot.sls
+++ b/roles/viperserv/wikidata-access-layer/pywikibot.sls
@@ -24,3 +24,10 @@
- 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/plain
Expires
Sun, Nov 24, 07:32 (17 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259513
Default Alt Text
D1218.id3134.diff (2 KB)
Attached To
Mode
D1218: Install and configure pywikibot
Attached
Detach File
Event Timeline
Log In to Comment