mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-25 22:18:53 +07:00
23 lines
430 B
Makefile
23 lines
430 B
Makefile
.POSIX:
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
|
KUBE_CONFIG_PATH = ../metal/kubeconfig.yaml
|
|
|
|
default: apply
|
|
|
|
~/.terraform.d/credentials.tfrc.json:
|
|
terraform login
|
|
|
|
terraform.tfvars:
|
|
ansible-playbook secrets.yml
|
|
|
|
.terraform.lock.hcl: ~/.terraform.d/credentials.tfrc.json versions.tf terraform.tfvars
|
|
terraform init
|
|
touch .terraform.lock.hcl
|
|
|
|
plan: .terraform.lock.hcl
|
|
terraform plan
|
|
|
|
apply: .terraform.lock.hcl
|
|
terraform apply -auto-approve
|