Page MenuHomeDevCentral

D2410.id6133.diff
No OneTemporary

D2410.id6133.diff

diff --git a/pillar/core/users.sls b/pillar/core/users.sls
--- a/pillar/core/users.sls
+++ b/pillar/core/users.sls
@@ -117,6 +117,7 @@
devserver_tasks:
- deploy_dotfiles
- deploy_nanotab
+ - install_diesel
uid: 5001
erol:
diff --git a/roles/devserver/userland-home/homefiles.sls b/roles/devserver/userland-home/homefiles.sls
--- a/roles/devserver/userland-home/homefiles.sls
+++ b/roles/devserver/userland-home/homefiles.sls
@@ -37,4 +37,12 @@
- unset tabstospaces
{% endif %}
+{% if 'install_diesel' in tasks %}
+devserver_diesel_{{username}}:
+ cmd.run:
+ - name: /home/{{username}}/.cargo/bin/cargo install diesel_cli --no-default-features --features postgres,sqlite
+ - runas: {{username}}
+ - creates: /home/{{username}}/.cargo/bin/diesel
+{% endif %}
+
{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 00:27 (13 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2246914
Default Alt Text
D2410.id6133.diff (828 B)

Event Timeline