mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Helper scripts using nix
This commit is contained in:
parent
6938694a84
commit
bfc85a9fab
2 changed files with 17 additions and 0 deletions
8
ansible.sh
Executable file
8
ansible.sh
Executable file
|
|
@ -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 "$@"
|
||||||
9
terraform.sh
Executable file
9
terraform.sh
Executable file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue