diff options
Diffstat (limited to 'roles/contexts/fretlink/templates/environment.j2')
-rw-r--r-- | roles/contexts/fretlink/templates/environment.j2 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/contexts/fretlink/templates/environment.j2 b/roles/contexts/fretlink/templates/environment.j2 index bb9328a..e5e2c64 100644 --- a/roles/contexts/fretlink/templates/environment.j2 +++ b/roles/contexts/fretlink/templates/environment.j2 | |||
@@ -8,6 +8,14 @@ if ! $(echo "$PATH" | grep -q "$DIR/toolbox/scripts"); then | |||
8 | PATH="$DIR/toolbox/scripts:$PATH" | 8 | PATH="$DIR/toolbox/scripts:$PATH" |
9 | fi | 9 | fi |
10 | 10 | ||
11 | p() { | ||
12 | if [ -z "$2" ]; then | ||
13 | pass show Travail/Fretlink/$1 | ||
14 | else | ||
15 | pass show Travail/Fretlink/$1 | grep "^$2:" | sed -e "s/^$2: //" | ||
16 | fi | head -n1 | ||
17 | } | ||
18 | |||
11 | build_macaroon() { | 19 | build_macaroon() { |
12 | if [ "$1" = "--old" ]; then | 20 | if [ "$1" = "--old" ]; then |
13 | shift | 21 | shift |
@@ -178,6 +186,7 @@ if [ "$APP" = "notifier" ]; then | |||
178 | export TEMPLATES_ASSETS_BASE_URL="http://dummy/" | 186 | export TEMPLATES_ASSETS_BASE_URL="http://dummy/" |
179 | export TRANSPOREON_USER="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/ApiTest subkey=Login') }}" | 187 | export TRANSPOREON_USER="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/ApiTest subkey=Login') }}" |
180 | export TRANSPOREON_PASSWORD="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/ApiTest') }}" | 188 | export TRANSPOREON_PASSWORD="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/ApiTest') }}" |
189 | export TRANSPOREON_HOST="api.test.transporeon.com" | ||
181 | export TRANSPOREON_CALLBACK_USER="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/NotifierCallbackTest subkey=Login') }}" | 190 | export TRANSPOREON_CALLBACK_USER="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/NotifierCallbackTest subkey=Login') }}" |
182 | export TRANSPOREON_CALLBACK_PASSWORD="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/NotifierCallbackTest') }}" | 191 | export TRANSPOREON_CALLBACK_PASSWORD="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/NotifierCallbackTest') }}" |
183 | 192 | ||