19961: Merge branch 'main'
[arvados.git] / tools / salt-install / config_examples / multi_host / aws / pillars / nginx_webshell_configuration.sls
index 13a96eb33e76fab4bbc3c51e69f131fa8efc9ea4..3a0a23d95f31b6e27a2b43f2c8934f0c67d5aa92 100644 (file)
@@ -3,7 +3,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-{%- import_yaml "ssl_key_encrypted.sls" as imported %}
+{%- import_yaml "ssl_key_encrypted.sls" as ssl_key_encrypted_pillar %}
 
 ### NGINX
 nginx:
@@ -73,8 +73,8 @@ nginx:
             - include: snippets/ssl_hardening_default.conf
             - ssl_certificate: __CERT_PEM__
             - ssl_certificate_key: __CERT_KEY__
-            {%- if imported.ssl_key_encrypted.enabled %}
-            - ssl_password_file: {{ imported.ssl_key_encrypted.ssl_password_file }}
+            {%- if ssl_key_encrypted_pillar.ssl_key_encrypted.enabled %}
+            - ssl_password_file: {{ '/run/arvados/' | path_join(ssl_key_encrypted_pillar.ssl_key_encrypted.privkey_password_filename) }}
             {%- endif %}
             - access_log: /var/log/nginx/webshell.__CLUSTER__.__DOMAIN__.access.log combined
             - error_log: /var/log/nginx/webshell.__CLUSTER__.__DOMAIN__.error.log