]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Use different pword command on barium
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 26 Nov 2019 11:03:37 +0000 (11:03 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 26 Nov 2019 11:03:37 +0000 (11:03 +0000)
states/aerc/files/accounts.jinja

index f60d0b09d9e360e7988c79e432f8b4d8e501c8ea..494da472c809111aa444635c1ac1908ec875d545 100644 (file)
@@ -1,4 +1,9 @@
-{% set pword_cmd = "pass webmail.friedersdorff.com/max@friedersdorff.com | head -n 1" %}
+{% if grains['host'] == "barium" %}
+       {% set pword_cmd = "PASSWORD_STORE_DIR=~/.password-store-personal pass webmail.friedersdorff.com/max@friedersdorff.com | head -n 1" %}
+{% else %}
+       {% set pword_cmd = "pass webmail.friedersdorff.com/max@friedersdorff.com | head -n 1" %}
+{% endif %}
+
 [Personal]
 source   = imaps://max%40friedersdorff.com@mail.friedersdorff.com
 source-cred-cmd = "{{ pword_cmd }}"