-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
56 lines (42 loc) · 876 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.PHONY: all
all: homelab
###
### Boostrap homelab
###
.PHONY: deps
deps:
pip install --upgrade pip
pip install -r requirements.txt
.PHONY: infrastructure
infrastructure:
$(MAKE) -C iac/terraform init
$(MAKE) -C iac/terraform apply
.PHONY: cluster
cluster:
$(MAKE) -C iac/ansible stand-up
.PHONY: homelab
homelab: deps infrastructure cluster
###
### Teardown homelab
###
.PHONY: teardown-cluster
teardown-cluster:
$(MAKE) -C iac/ansible reset
.PHONY: teardown-infrastructure
teardown-infrastructure:
$(MAKE) -C iac/terraform destroy
.PHONY: teardown-homelab
teardown-homelab: teardown-cluster teardown-infrastructure
###
### Lint and format
###
.PHONY: lint-ansible
lint-ansible:
$(MAKE) -C iac/ansible lint
.PHONY: lint
lint: lint-ansible
.PHONY: format-terraform
format-terraform:
$(MAKE) -C iac/terraform format
.PHONY: format
format: format-terraform