From 2252ab05a84b9adf1db75e1f7fc6de674b580a81 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Tue, 20 Aug 2024 17:15:27 +0530 Subject: [PATCH] feat: start using direnv --- .env.sample | 16 ++++++++++++++++ .gitignore | 1 + ansible/.env.sample | 12 ------------ packer/.env.sample | 5 ----- 4 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 .env.sample delete mode 100644 ansible/.env.sample delete mode 100644 packer/.env.sample diff --git a/.env.sample b/.env.sample new file mode 100644 index 00000000..568acd40 --- /dev/null +++ b/.env.sample @@ -0,0 +1,16 @@ +# For Linode Dynamic Inventory +export LINODE_API_TOKEN= + +# For Tailscale Onboarding +export TAILSCALE_API_KEY= +export TAILSCALE_AUTH_KEY= +export TAILSCALE_KEY=$TAILSCALE_API_KEY + +# For AWS AWS Dynamic Inventory +export AWS_PROFILE= +export AWS_SSM_BUCKET_NAME= +export AWS_SSM_REGION= + + +export HCP_CLIENT_ID= +export HCP_CLIENT_SECRET= diff --git a/.gitignore b/.gitignore index 809aac48..2ae94eb5 100644 --- a/.gitignore +++ b/.gitignore @@ -48,3 +48,4 @@ ansible/inventory/hosts # Secrets *.env +.envrc diff --git a/ansible/.env.sample b/ansible/.env.sample deleted file mode 100644 index c01d0e7f..00000000 --- a/ansible/.env.sample +++ /dev/null @@ -1,12 +0,0 @@ -# For Linode Dynamic Inventory -export LINODE_API_TOKEN='linode-api-token' - -# For Tailscale Onboarding -export TAILSCALE_API_KEY='tskey-api-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' -export TAILSCALE_AUTH_KEY='tskey-auth-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' -export TAILSCALE_KEY=$TAILSCALE_API_KEY - -# For AWS AWS Dynamic Inventory -export AWS_PROFILE='default' -export AWS_SSM_BUCKET_NAME='aws-ssm-bucket-name' -export AWS_SSM_REGION='us-east-1' diff --git a/packer/.env.sample b/packer/.env.sample deleted file mode 100644 index 223c0900..00000000 --- a/packer/.env.sample +++ /dev/null @@ -1,5 +0,0 @@ -# For Packer -export LINODE_API_TOKEN='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' - -export HCP_CLIENT_ID='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' -export HCP_CLIENT_SECRET='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'