diff options
author | pmikus <pmikus@cisco.com> | 2020-12-01 07:38:28 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2020-12-02 07:54:06 +0000 |
commit | b2ff2bb435a765c588b5ae9f8461bbf9b5064651 (patch) | |
tree | 2b4e25b5963d9d80775c38c62c88e56e52d8cead /resources/tools/terraform/1n_nmd/main.tf | |
parent | 4582f0f408616cdff8e606ac3abfe154f8f0514b (diff) |
Terraform: Nomad resource definitions
+ storage
- final until more ssd arive.
+ nginx
- final
+ vpp_device
- untested yet (restored from EdK setups)
- to be rewritten
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: Ib9499fc8cfb0d9f5c5d5bbd1ccd856ecc951ec2a
Diffstat (limited to 'resources/tools/terraform/1n_nmd/main.tf')
-rw-r--r-- | resources/tools/terraform/1n_nmd/main.tf | 40 |
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 |