aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/terraform/1n_nmd/main.tf
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/terraform/1n_nmd/main.tf')
-rw-r--r--resources/tools/terraform/1n_nmd/main.tf40
1 files changed, 40 insertions, 0 deletions
diff --git a/resources/tools/terraform/1n_nmd/main.tf b/resources/tools/terraform/1n_nmd/main.tf
new file mode 100644
index 0000000000..330f647476
--- /dev/null
+++ b/resources/tools/terraform/1n_nmd/main.tf
@@ -0,0 +1,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
+ }
+} \ No newline at end of file