mirror of
https://github.com/apricote/home-cloud.git
synced 2026-01-13 13:01:03 +00:00
feat: update makefile
This commit is contained in:
parent
ecfbee1e03
commit
2a075ff0b1
1 changed files with 8 additions and 4 deletions
12
Makefile
12
Makefile
|
|
@ -1,6 +1,6 @@
|
|||
TF=terraform
|
||||
TFFLAGS=-var-file=credentials.tfvars
|
||||
VALIDATE=terraform validate -check-variables=false
|
||||
VALIDATE=terraform validate
|
||||
|
||||
apply: init
|
||||
$(TF) apply $(TFFLAGS)
|
||||
|
|
@ -12,14 +12,18 @@ destroy: init
|
|||
$(TF) destroy $(TFFLAGS)
|
||||
|
||||
lint: init
|
||||
$(VALIDATE) modules/docker_node
|
||||
$(VALIDATE) modules/floating_ip
|
||||
$(VALIDATE) services/bitwarden
|
||||
$(VALIDATE) k3s_cluster_v2
|
||||
$(VALIDATE) .
|
||||
|
||||
init: keys/id_terraform
|
||||
$(TF) init
|
||||
|
||||
upgrade:
|
||||
$(TF) init -upgrade
|
||||
|
||||
import:
|
||||
$(TF) import $(TFFLAGS) $(ADDR) $(ID)
|
||||
|
||||
keys/id_terraform:
|
||||
echo "No private key found! Generating Terraform SSH Keys."
|
||||
./scripts/bootstrap-keys.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue