feat(terraform): Remove unused services
[csit.git] / fdio.infra.terraform / 1n_nmd / main.tf
1 # For convenience in simple configurations, a child module automatically
2 # inherits default (un-aliased) provider configurations from its parent.
3 # This means that explicit provider blocks appear only in the root module,
4 # and downstream modules can simply declare resources for that provider
5 # and have them automatically associated with the root provider
6 # configurations.
7
8 #module "minio" {
9 #  source = "./minio"
10 #  providers = {
11 #    nomad = nomad.yul1
12 #  }
13 #
14 #  # nomad
15 #  nomad_datacenters = ["yul1"]
16 #  nomad_host_volume = "prod-volume-data1-1"
17 #
18 #  # minio
19 #  minio_job_name        = "prod-minio"
20 #  minio_group_count     = 4
21 #  minio_service_name    = "storage"
22 #  minio_host            = "http://10.32.8.1{4...7}"
23 #  minio_port            = 9000
24 #  minio_container_image = "minio/minio:RELEASE.2021-07-27T02-40-15Z"
25 #  minio_vault_secret = {
26 #    use_vault_provider        = false,
27 #    vault_kv_policy_name      = "kv-secret",
28 #    vault_kv_path             = "secret/data/minio",
29 #    vault_kv_field_access_key = "access_key",
30 #    vault_kv_field_secret_key = "secret_key"
31 #  }
32 #  minio_data_dir        = "/data/"
33 #  minio_use_host_volume = true
34 #  minio_use_canary      = true
35 #  minio_envs            = ["MINIO_BROWSER=\"off\""]
36 #
37 #  minio_buckets = ["logs.fd.io"]
38 #}
39
40 data "vault_generic_secret" "minio_creds" {
41   path = "kv/secret/data/minio"
42 }
43
44 module "vpp_device" {
45   source = "./vpp_device"
46   providers = {
47     nomad = nomad.yul1
48   }
49
50   # nomad
51   nomad_datacenters = ["yul1"]
52
53   # csit_shim
54   csit_shim_job_name      = "prod-device-csit-shim"
55   csit_shim_group_count   = "1"
56   csit_shim_cpu           = "1500"
57   csit_shim_mem           = "4096"
58   csit_shim_image_aarch64 = "fdiotools/csit_shim-ubuntu2004:2021_03_02_143938_UTC-aarch64"
59   csit_shim_image_x86_64  = "fdiotools/csit_shim-ubuntu2004:2021_03_04_142103_UTC-x86_64"
60 }