blob: 24d5ff3efc187c0c5cc36c999d45f258ff1028d0 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# 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.
#module "minio" {
# source = "./minio"
# providers = {
# nomad = nomad.yul1
# }
#
# # nomad
# nomad_datacenters = ["yul1"]
# nomad_host_volume = "prod-volume-data1-1"
#
# # minio
# minio_job_name = "prod-minio"
# minio_group_count = 4
# minio_service_name = "storage"
# minio_host = "http://10.32.8.1{4...7}"
# minio_port = 9000
# minio_container_image = "minio/minio:RELEASE.2021-07-27T02-40-15Z"
# minio_vault_secret = {
# use_vault_provider = false,
# vault_kv_policy_name = "kv-secret",
# vault_kv_path = "secret/data/minio",
# vault_kv_field_access_key = "access_key",
# vault_kv_field_secret_key = "secret_key"
# }
# minio_data_dir = "/data/"
# minio_use_host_volume = true
# minio_use_canary = true
# minio_envs = ["MINIO_BROWSER=\"off\""]
#
# minio_buckets = ["logs.fd.io"]
#}
data "vault_generic_secret" "minio_creds" {
path = "kv/secret/data/minio"
}
#module "nginx" {
# source = "./nginx"
# providers = {
# nomad = nomad.yul1
# }
#
# # nomad
# nomad_datacenters = ["yul1"]
# nomad_host_volume = "prod-volume-data1-1"
#
# # nginx
# nginx_job_name = "prod-nginx"
# nginx_use_host_volume = true
#}
module "vpp_device" {
source = "./vpp_device"
providers = {
nomad = nomad.yul1
}
# nomad
nomad_datacenters = ["yul1"]
# csit_shim
csit_shim_job_name = "prod-device-csit-shim"
csit_shim_group_count = "1"
csit_shim_cpu = "1500"
csit_shim_mem = "4096"
csit_shim_image_aarch64 = "fdiotools/csit_shim-ubuntu2004:2021_03_02_143938_UTC-aarch64"
csit_shim_image_x86_64 = "fdiotools/csit_shim-ubuntu2004:2021_03_04_142103_UTC-x86_64"
}
|