diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2019-02-27 19:18:55 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2019-02-27 19:18:55 +0100 |
commit | bf4da46633ce3682339ea01bf18c98562fa04c5d (patch) | |
tree | 40fa6cc283d38b704e3d5144d6822474cbcd2075 /roles/contexts/fretlink/templates | |
parent | e2e7cad558fda2d58d91a18c1ad074cb6da39828 (diff) | |
download | Ansible-bf4da46633ce3682339ea01bf18c98562fa04c5d.tar.gz Ansible-bf4da46633ce3682339ea01bf18c98562fa04c5d.tar.zst Ansible-bf4da46633ce3682339ea01bf18c98562fa04c5d.zip |
Fix a few strings and configurations, and add a fl_restoreDump script
Diffstat (limited to 'roles/contexts/fretlink/templates')
-rw-r--r-- | roles/contexts/fretlink/templates/environment.j2 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/roles/contexts/fretlink/templates/environment.j2 b/roles/contexts/fretlink/templates/environment.j2 index 36e4bfd..91a6f6a 100644 --- a/roles/contexts/fretlink/templates/environment.j2 +++ b/roles/contexts/fretlink/templates/environment.j2 | |||
@@ -58,7 +58,7 @@ FL_APP_URL="$FL_APPS_SCHEME://$FL_APPS_HOST:$FL_APP_PORT" | |||
58 | FL_CARRIER_DIRECTORY_PORT=8082 | 58 | FL_CARRIER_DIRECTORY_PORT=8082 |
59 | FL_CARRIER_DIRECTORY_SECRET="{{ lookup('passwordstore', 'Travail/Fretlink/Macaroons/CarrierDirectory subkey=Secret') }}" | 59 | FL_CARRIER_DIRECTORY_SECRET="{{ lookup('passwordstore', 'Travail/Fretlink/Macaroons/CarrierDirectory subkey=Secret') }}" |
60 | FL_CARRIER_DIRECTORY_PRIVATE_KEY="{{ lookup('passwordstore', 'Travail/Fretlink/Macaroons/CarrierDirectory subkey=PrivateKey') }}" | 60 | FL_CARRIER_DIRECTORY_PRIVATE_KEY="{{ lookup('passwordstore', 'Travail/Fretlink/Macaroons/CarrierDirectory subkey=PrivateKey') }}" |
61 | FL_CARRIER_DIRECTORY_URL="$FL_APPS_SCHEME://$FL_APPS_HOST:$FL_CARRIER_DIRECTORY_PORT/api/" | 61 | FL_CARRIER_DIRECTORY_URL="$FL_APPS_SCHEME://$FL_APPS_HOST:$FL_CARRIER_DIRECTORY_PORT/api" |
62 | 62 | ||
63 | FL_NOTIFIER_PORT=8081 | 63 | FL_NOTIFIER_PORT=8081 |
64 | FL_NOTIFIER_SECRET="{{ lookup('passwordstore', 'Travail/Fretlink/Macaroons/Notifier subkey=Secret') }}" | 64 | FL_NOTIFIER_SECRET="{{ lookup('passwordstore', 'Travail/Fretlink/Macaroons/Notifier subkey=Secret') }}" |
@@ -149,14 +149,16 @@ if [ "$APP" = "app" ]; then | |||
149 | export FRETLINK_AMAZON_PUBLIC_KEY="password" | 149 | export FRETLINK_AMAZON_PUBLIC_KEY="password" |
150 | export FRETLINK_AMAZON_PRIVATE_KEY="password" | 150 | export FRETLINK_AMAZON_PRIVATE_KEY="password" |
151 | export FRETLINK_GMAPS_API_KEY="password" | 151 | export FRETLINK_GMAPS_API_KEY="password" |
152 | export FRETLINK_PASSWORD_REQUEST_SECRET="password" | ||
152 | 153 | ||
153 | # secret | 154 | # secret |
154 | export FRETLINK_MACAROON_SECRET=$FL_APP_SECRET | 155 | export FRETLINK_MACAROON_SECRET=$FL_APP_SECRET |
155 | 156 | ||
156 | # carrier directory | 157 | # carrier directory |
157 | export CARRIER_DIRECTORY_URI="$FL_CARRIER_DIRECTORY_URL" | 158 | export CARRIER_DIRECTORY_URI="$FL_CARRIER_DIRECTORY_URL/" |
158 | export FRETLINK_CARDIR_URL="$FL_CARRIER_DIRECTORY_URL" | 159 | export FRETLINK_CARDIR_URL="$FL_CARRIER_DIRECTORY_URL" |
159 | export FRETLINK_CARDIR_ENABLED="true" | 160 | export FRETLINK_CARDIR_ENABLED="true" |
161 | export FRETLINK_CARDIRV3_ACCESS_KEY="$(build_macaroon $FL_CARRIER_DIRECTORY_SECRET carrier-directory carrier-directory carrier-directory::read)" | ||
160 | 162 | ||
161 | # notifier | 163 | # notifier |
162 | export FRETLINK_NOTIFIER_API=$FL_NOTIFIER_URL | 164 | export FRETLINK_NOTIFIER_API=$FL_NOTIFIER_URL |
@@ -183,6 +185,7 @@ if [ "$APP" = "app" ]; then | |||
183 | # geodata | 185 | # geodata |
184 | export FRETLINK_GEODATA_API="{{ lookup('passwordstore', 'Travail/Fretlink/Macaroons/GeodataDev subkey=Url') }}" | 186 | export FRETLINK_GEODATA_API="{{ lookup('passwordstore', 'Travail/Fretlink/Macaroons/GeodataDev subkey=Url') }}" |
185 | export FRETLINK_GEODATA_ACCESS_KEY="{{ lookup('passwordstore', 'Travail/Fretlink/Macaroons/GeodataDev') }}" | 187 | export FRETLINK_GEODATA_ACCESS_KEY="{{ lookup('passwordstore', 'Travail/Fretlink/Macaroons/GeodataDev') }}" |
188 | export GEODATA_URI="$FRETLINK_GEODATA_API" | ||
186 | fi | 189 | fi |
187 | 190 | ||
188 | if [ "$APP" = "admin-root" ]; then | 191 | if [ "$APP" = "admin-root" ]; then |
@@ -199,6 +202,7 @@ fi | |||
199 | 202 | ||
200 | if [ "$APP" = "carrier-directory" ]; then | 203 | if [ "$APP" = "carrier-directory" ]; then |
201 | export ADMIN_BASE_URL=$FL_APP_URL | 204 | export ADMIN_BASE_URL=$FL_APP_URL |
205 | export ACCESS_KEY="$(build_macaroon $FL_CARRIER_DIRECTORY_SECRET carrier-directory carrier-directory carrier-directory::read)" | ||
202 | fi | 206 | fi |
203 | 207 | ||
204 | if [ "$APP" = "notifier" ]; then | 208 | if [ "$APP" = "notifier" ]; then |