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
|
TF=terraform
|
||||||
TFFLAGS=-var-file=credentials.tfvars
|
TFFLAGS=-var-file=credentials.tfvars
|
||||||
VALIDATE=terraform validate -check-variables=false
|
VALIDATE=terraform validate
|
||||||
|
|
||||||
apply: init
|
apply: init
|
||||||
$(TF) apply $(TFFLAGS)
|
$(TF) apply $(TFFLAGS)
|
||||||
|
|
@ -12,14 +12,18 @@ destroy: init
|
||||||
$(TF) destroy $(TFFLAGS)
|
$(TF) destroy $(TFFLAGS)
|
||||||
|
|
||||||
lint: init
|
lint: init
|
||||||
$(VALIDATE) modules/docker_node
|
$(VALIDATE) k3s_cluster_v2
|
||||||
$(VALIDATE) modules/floating_ip
|
|
||||||
$(VALIDATE) services/bitwarden
|
|
||||||
$(VALIDATE) .
|
$(VALIDATE) .
|
||||||
|
|
||||||
init: keys/id_terraform
|
init: keys/id_terraform
|
||||||
$(TF) init
|
$(TF) init
|
||||||
|
|
||||||
|
upgrade:
|
||||||
|
$(TF) init -upgrade
|
||||||
|
|
||||||
|
import:
|
||||||
|
$(TF) import $(TFFLAGS) $(ADDR) $(ID)
|
||||||
|
|
||||||
keys/id_terraform:
|
keys/id_terraform:
|
||||||
echo "No private key found! Generating Terraform SSH Keys."
|
echo "No private key found! Generating Terraform SSH Keys."
|
||||||
./scripts/bootstrap-keys.sh
|
./scripts/bootstrap-keys.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue