-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (41 loc) · 2.94 KB
/
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
57
58
59
60
init:
pre-commit install
test -d ".terraform" || terraform init
plan-vserver-dd:
test "$(terraform workspace show)" != "vserver-dd" && terraform workspace select vserver-dd; terraform plan -var-file envs/vserver-dd.tfvars
apply-vserver-dd: init
test "$(terraform workspace show)" != "vserver-dd" && terraform workspace select vserver-dd; terraform apply -var-file envs/vserver-dd.tfvars
apply-auto-vserver-dd: init
test "$(terraform workspace show)" != "vserver-dd" && terraform workspace select vserver-dd; terraform apply -auto-approve -var-file envs/vserver-dd.tfvars
destroy-vserver-dd:
test "$(terraform workspace show)" != "vserver-dd" && terraform workspace select vserver-dd; terraform destroy -var-file envs/vserver-dd.tfvars
apply-nuc-pt:
test "$(terraform workspace show)" != "nuc-pt" && terraform workspace select nuc-pt; terraform apply -var-file envs/nuc-pt.tfvars
plan-nuc-pt:
test "$(terraform workspace show)" != "nuc-pt" && terraform workspace select nuc-pt; terraform plan -var-file envs/nuc-pt.tfvars
destroy-nuc-pt:
test "$(terraform workspace show)" != "nuc-pt" && terraform workspace select nuc-pt; terraform destroy -var-file envs/nuc-pt.tfvars
plan-vserver-pt:
test "$(terraform workspace show)" != "vserver-pt" && terraform workspace select vserver-pt; terraform plan -var-file envs/vserver-pt.tfvars
apply-vserver-pt: init
test "$(terraform workspace show)" != "vserver-pt" && terraform workspace select vserver-pt; terraform apply -var-file envs/vserver-pt.tfvars
apply-auto-vserver-pt: init
test "$(terraform workspace show)" != "vserver-pt" && terraform workspace select vserver-pt; terraform apply -auto-approve -var-file envs/vserver-pt.tfvars
destroy-vserver-pt:
test "$(terraform workspace show)" != "vserver-pt" && terraform workspace select vserver-pt; terraform destroy -var-file envs/vserver-pt.tfvars
plan-vserver-ez:
test "$(terraform workspace show)" != "vserver-ez" && terraform workspace select vserver-ez; terraform plan -var-file envs/vserver-ez.tfvars
apply-vserver-ez: init
test "$(terraform workspace show)" != "vserver-ez" && terraform workspace select vserver-ez; terraform apply -var-file envs/vserver-ez.tfvars
apply-auto-vserver-ez: init
test "$(terraform workspace show)" != "vserver-ez" && terraform workspace select vserver-ez; terraform apply -auto-approve -var-file envs/vserver-ez.tfvars
destroy-vserver-ez:
test "$(terraform workspace show)" != "vserver-ez" && terraform workspace select vserver-ez; terraform destroy -var-file envs/vserver-ez.tfvars
apply-nuc-dd:
test "$(terraform workspace show)" != "nuc-dd" && terraform workspace select nuc-dd; terraform apply -var-file envs/nuc-dd.tfvars
plan-nuc-dd:
test "$(terraform workspace show)" != "nuc-dd" && terraform workspace select nuc-dd; terraform plan -var-file envs/nuc-dd.tfvars
destroy-nuc-dd:
test "$(terraform workspace show)" != "nuc-dd" && terraform workspace select nuc-dd; terraform destroy -var-file envs/nuc-dd.tfvars
output: init
terraform output