Page MenuHomeDevCentral

D1218.id3133.diff
No OneTemporary

D1218.id3133.diff

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

Mime Type
text/plain
Expires
Sun, Nov 24, 07:20 (16 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259513
Default Alt Text
D1218.id3133.diff (2 KB)

Event Timeline