Also generated tfvars from apps.config.
This commit is contained in:
11
Makefile
11
Makefile
@@ -12,11 +12,14 @@ all-apps/lb/Caddyfile: apps.config make-caddyfile.sh
|
||||
ignition.json: cl.yaml app/.dirstamp all-apps/lb/Caddyfile
|
||||
cat cl.yaml | sudo docker run --rm --volume /home/tjhintz/.ssh/id_rsa.pub:/pwd/ssh-keys --volume ${PWD}:/pwd --workdir /pwd -i quay.io/coreos/butane:latest -d /pwd > ignition.json
|
||||
|
||||
plan: ignition.json
|
||||
terraform plan -var-file $(TERRAFORM_ENV).tfvars
|
||||
generated.tfvars: apps.config make-generated.sh
|
||||
./make-generated.sh > generated.tfvars
|
||||
|
||||
apply: ignition.json
|
||||
terraform apply -var-file $(TERRAFORM_ENV).tfvars
|
||||
plan: ignition.json $(TERRAFORM_ENV).tfvars generated.tfvars
|
||||
bash -c "terraform plan -var-file=<(cat $(TERRAFORM_ENV).tfvars generated.tfvars)"
|
||||
|
||||
apply: ignition.json $(TERRAFORM_ENV).tfvars generated.tfvars
|
||||
bash -c "terraform apply -var-file=<(cat $(TERRAFORM_ENV).tfvars generated.tfvars)"
|
||||
|
||||
## to help me remember the command to run to test the config locally
|
||||
testlocalhost:
|
||||
|
||||
Reference in New Issue
Block a user