aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/terraform/1n_nmd/main.tf
blob: 330f647476926879e318780537a034c8bc559935 (plain)
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
terraform {
  # This module is now only being tested with Terraform 0.13.5+.
  required_version = ">= 0.13.5"
}

provider "nomad" {
  address = var.nomad_provider_address
  alias   = "yul1"
}

# For convenience in simple configurations, a child module automatically
# inherits default (un-aliased) provider configurations from its parent.
# This means that explicit provider blocks appear only in the root module,
# and downstream modules can simply declare resources for that provider
# and have them automatically associated with the root provider
# configurations.

# prod_storage
# + prod-group1-nginx
# + prod-group1-storage
# + services
#   + docs.nginx.service.consul
#   + logs.nginx.service.consul
#   + storage.nginx.service.consul
module "prod_storage" {
  source = "./prod_storage"
  providers = {
    nomad = nomad.yul1
  }
}

# prod_vpp_device
# + prod-csit-shim-amd
# + prod-csit-shim-arm
module "prod_vpp_device" {
  source = "./prod_vpp_device"
  providers = {
    nomad = nomad.yul1
  }
}