Page MenuHomeDevCentral

D1369.diff
No OneTemporary

D1369.diff

diff --git a/roles/viperserv/account/init.sls b/roles/viperserv/account/init.sls
--- a/roles/viperserv/account/init.sls
+++ b/roles/viperserv/account/init.sls
@@ -21,7 +21,7 @@
- fullname: {{ user['fullname'] }}
- uid: {{ user['uid'] }}
- gid: nasqueron-irc
- - home: /var/run/{{ username }}
+ - home: {{ dirs.share }}/{{ username }}
/var/run/{{ username }}:
file.directory:
diff --git a/roles/viperserv/wikidata-access-layer/code.sls b/roles/viperserv/wikidata-access-layer/code.sls
--- a/roles/viperserv/wikidata-access-layer/code.sls
+++ b/roles/viperserv/wikidata-access-layer/code.sls
@@ -6,6 +6,8 @@
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
+{% from "map.jinja" import dirs with context %}
+
daeghrefn_wikidata_access_layer:
file.directory:
- name: /srv/wikidata-access-layer
@@ -15,13 +17,13 @@
- target: /srv/wikidata-access-layer
- user: deploy
-/var/run/viperserv/bin:
+{{ dirs.share }}/viperserv/bin:
file.directory:
- user: viperserv
- group: nasqueron-irc
{% for script in ['create_given_name', 'create_surname'] %}
-/var/run/viperserv/bin/{{ script }}:
+{{ dirs.share }}/viperserv/bin/{{ script }}:
file.symlink:
- target: /srv/wikidata-access-layer/{{ script }}
- user: viperserv

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 04:17 (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2265853
Default Alt Text
D1369.diff (1 KB)

Event Timeline