Automation and setup for sites I own.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
336 B

  1. TF:=terraform
  2. SSH:=ssh
  3. USER_SSH_OPTS:=
  4. SSH_OPTS:=-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $(USER_SSH_OPTS)
  5. .PHONY: all
  6. all: up
  7. .PHONY: rebuild
  8. rebuild: down up
  9. .PHONY: up
  10. up:
  11. $(TF) apply -auto-approve
  12. .PHONY: down
  13. down:
  14. $(TF) destroy -auto-approve
  15. .PHONY: ssh
  16. ssh:
  17. $(SSH) $(SSH_OPTS) root@`$(TF) output ipv4`