diff options
-rw-r--r-- | roles/contexts/fretlink/templates/environment.j2 | 9 | ||||
-rw-r--r-- | roles/tools/files/ssh/rc | 11 | ||||
-rw-r--r-- | roles/tools/templates/tmux.conf.j2 | 1 |
3 files changed, 16 insertions, 5 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 | ||
diff --git a/roles/tools/files/ssh/rc b/roles/tools/files/ssh/rc index 35b7d34..32d1bd4 100644 --- a/roles/tools/files/ssh/rc +++ b/roles/tools/files/ssh/rc | |||
@@ -1,8 +1,9 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | if [ -n "$DISPLAY" ]; then | 3 | if read proto cookie && [ -n "$DISPLAY" ]; then |
4 | export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" | 4 | if [ `echo $DISPLAY | cut -c1-10` = "localhost:" ]; then |
5 | read protocol cookie | 5 | echo add unix:`echo $DISPLAY | cut -c11-` $proto $cookie |
6 | xauth remove $DISPLAY | 6 | else |
7 | xauth add $DISPLAY "$protocol" "$cookie" | 7 | echo add $DISPLAY "$protocol" "$cookie" |
8 | fi | xauth -q - | ||
8 | fi | 9 | fi |
diff --git a/roles/tools/templates/tmux.conf.j2 b/roles/tools/templates/tmux.conf.j2 index 07e88b9..57ddc2e 100644 --- a/roles/tools/templates/tmux.conf.j2 +++ b/roles/tools/templates/tmux.conf.j2 | |||
@@ -75,3 +75,4 @@ set-window-option -g window-status-bell-style fg=yellow,bold,underscore | |||
75 | set -g default-terminal screen-256color | 75 | set -g default-terminal screen-256color |
76 | 76 | ||
77 | set -g mouse on | 77 | set -g mouse on |
78 | set -g detach-on-destroy off | ||