From bfc85a9fabfe7c518d3eb3f7358b45cbe99b7e50 Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Sat, 25 May 2019 23:30:56 +0200 Subject: [PATCH] Helper scripts using nix --- ansible.sh | 8 ++++++++ terraform.sh | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100755 ansible.sh create mode 100755 terraform.sh diff --git a/ansible.sh b/ansible.sh new file mode 100755 index 0000000..f5934e5 --- /dev/null +++ b/ansible.sh @@ -0,0 +1,8 @@ +#! /usr/bin/env nix-shell +#! nix-shell -i bash -p ansible jq + +set -e + +SCW_TOKEN=`jq '.token' -r ~/.scwrc` + +ansible-playbook "$@" diff --git a/terraform.sh b/terraform.sh new file mode 100755 index 0000000..8e4ed3b --- /dev/null +++ b/terraform.sh @@ -0,0 +1,9 @@ +#! /usr/bin/env nix-shell +#! nix-shell -i bash -p terraform jq + +set -e + +AWS_ACCESS_KEY_ID=SCW3NQVMPDWZF6HM3DR1 +AWS_SECRET_ACCESS_KEY=`jq '.token' -r ~/.scwrc` + +terraform "$@" terraform