From b48f275fc9760807927745032b9884eaff639500 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Tue, 26 Nov 2019 11:03:37 +0000 Subject: [PATCH] Use different pword command on barium --- states/aerc/files/accounts.jinja | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/states/aerc/files/accounts.jinja b/states/aerc/files/accounts.jinja index f60d0b0..494da47 100644 --- a/states/aerc/files/accounts.jinja +++ b/states/aerc/files/accounts.jinja @@ -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 }}" -- 2.46.2