From a023e4edf3ea468a6418633b010fcfbe460c0047 Mon Sep 17 00:00:00 2001 From: Adw8 Date: Tue, 1 Oct 2024 17:39:28 +0530 Subject: [PATCH] Use variable for gpg passphrase in webapp deployer config template --- service-provider-setup/README.md | 2 +- .../templates/configs/webapp-deployer-config.env.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service-provider-setup/README.md b/service-provider-setup/README.md index 930a416..cfb9745 100644 --- a/service-provider-setup/README.md +++ b/service-provider-setup/README.md @@ -63,7 +63,7 @@ To get started, follow the [installation](../README.md#installation) guide to se password: "" # path to the ssh key on your machine, eg: "/home/dev/.ssh/id_rsa.pub" - path_to_ssh_key: " + path_to_ssh_key: "" ``` - Execute the `setup-user.yml` Ansible playbook to create a user with passwordless sudo permissions: diff --git a/service-provider-setup/templates/configs/webapp-deployer-config.env.j2 b/service-provider-setup/templates/configs/webapp-deployer-config.env.j2 index 33b4ab0..d769a9a 100644 --- a/service-provider-setup/templates/configs/webapp-deployer-config.env.j2 +++ b/service-provider-setup/templates/configs/webapp-deployer-config.env.j2 @@ -22,7 +22,7 @@ FQDN_POLICY="allow" # lrn of the webapp deployer LRN="lrn://{{ authority_name }}/deployers/webapp-deployer-api.{{ full_domain }}" export OPENPGP_PRIVATE_KEY_FILE="webapp-deployer-api.{{ full_domain }}.pgp.key" -export OPENPGP_PASSPHRASE="SECRET" +export OPENPGP_PASSPHRASE="{{ deployer_gpg_passphrase }}" export DEPLOYER_STATE="srv-test/deployments/autodeploy.state" export UNDEPLOYER_STATE="srv-test/deployments/autoundeploy.state" export UPLOAD_DIRECTORY="srv-test/uploads"