330f647476926879e318780537a034c8bc559935
[csit.git] / resources / tools / terraform / 1n_nmd / main.tf
1 terraform {
2   # This module is now only being tested with Terraform 0.13.5+.
3   required_version = ">= 0.13.5"
4 }
5
6 provider "nomad" {
7   address = var.nomad_provider_address
8   alias   = "yul1"
9 }
10
11 # For convenience in simple configurations, a child module automatically
12 # inherits default (un-aliased) provider configurations from its parent.
13 # This means that explicit provider blocks appear only in the root module,
14 # and downstream modules can simply declare resources for that provider
15 # and have them automatically associated with the root provider
16 # configurations.
17
18 # prod_storage
19 # + prod-group1-nginx
20 # + prod-group1-storage
21 # + services
22 #   + docs.nginx.service.consul
23 #   + logs.nginx.service.consul
24 #   + storage.nginx.service.consul
25 module "prod_storage" {
26   source = "./prod_storage"
27   providers = {
28     nomad = nomad.yul1
29   }
30 }
31
32 # prod_vpp_device
33 # + prod-csit-shim-amd
34 # + prod-csit-shim-arm
35 module "prod_vpp_device" {
36   source = "./prod_vpp_device"
37   providers = {
38     nomad = nomad.yul1
39   }
40 }