forked from gfortil/terraform-azurerm-hpcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
45 lines (32 loc) · 1.1 KB
/
main.tf
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
resource "null_resource" "deploy_vnet" {
provisioner "local-exec" {
command = "scripts/deploy vnet"
}
}
resource "null_resource" "deploy_aks" {
provisioner "local-exec" {
command = "scripts/deploy aks ${var.my_azure_id}"
}
depends_on = [ null_resource.deploy_vnet ]
}
resource "null_resource" "deploy_storage" {
count = (var.external_storage_desired == true)? 1 : 0
provisioner "local-exec" {
command = "scripts/deploy storage"
}
depends_on = [ null_resource.deploy_vnet, null_resource.deploy_aks ]
}
resource "null_resource" "external_storage" {
count = (var.external_storage_desired == true)? 1 : 0
provisioner "local-exec" {
command = "scripts/external_storage ${path.module} ${var.external_storage_desired}"
}
#depends_on = [ null_resource.deploy_vnet, null_resource.deploy_aks ]
depends_on = [ null_resource.deploy_vnet ]
}
resource "null_resource" "deploy_hpcc" {
provisioner "local-exec" {
command = "scripts/deploy hpcc"
}
depends_on = [ null_resource.deploy_aks, null_resource.deploy_vnet, null_resource.external_storage ]
}