From 9dc0cd00643ef003dd428104a09ac448e5f47636 Mon Sep 17 00:00:00 2001 From: Angelo Fenoglio Date: Thu, 3 Mar 2022 16:26:36 -0300 Subject: [PATCH] Mount host .ssh and .gitconfig dirs in container (#80) --- leverage/modules/terraform.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leverage/modules/terraform.py b/leverage/modules/terraform.py index d061ddbd..42217e53 100644 --- a/leverage/modules/terraform.py +++ b/leverage/modules/terraform.py @@ -157,8 +157,8 @@ def run(entrypoint=TERRAFORM_BINARY, command="", args=None, enable_mfa=True, int mounts = [ Mount(target=WORKING_DIR, source=CWD, type="bind"), - # Mount(target="/root/.ssh", source=f"{HOME}/.ssh", type="bind"), # SSH keys for Ansible - # Mount(target="/etc/gitconfig", source=f"{HOME}/.gitconfig", type="bind"), # Git user configuration + Mount(target="/root/.ssh", source=f"{HOME}/.ssh", type="bind"), # SSH keys for Ansible + Mount(target="/etc/gitconfig", source=f"{HOME}/.gitconfig", type="bind"), # Git user configuration Mount(target=f"/root/tmp/{project}", source=f"{HOME}/.aws/{project}", type="bind") ] if Path(str(CONFIG)).exists() and Path(str(ACCOUNT_CONFIG)).exists():