2 variable "nomad_datacenters" {
3 description = "Nomad data centers"
8 variable "nomad_host_volume" {
9 description = "Nomad Host Volume"
11 default = "persistence"
15 variable "minio_job_name" {
16 description = "Minio job name"
21 variable "minio_service_name" {
22 description = "Minio service name"
27 variable "minio_group_count" {
28 description = "Number of Minio group instances"
33 variable "minio_host" {
34 description = "Minio host"
39 variable "minio_port" {
40 description = "Minio port"
45 variable "minio_cpu" {
46 description = "CPU allocation for Minio"
51 variable "minio_memory" {
52 description = "Memory allocation for Minio"
57 variable "minio_container_image" {
58 description = "Minio docker image"
60 default = "minio/minio:latest"
63 variable "minio_envs" {
64 description = "Minio environment variables"
69 variable "minio_access_key" {
70 description = "Minio access key"
75 variable "minio_secret_key" {
76 description = "Minio secret key"
81 variable "minio_data_dir" {
82 description = "Minio server data dir"
87 variable "minio_use_host_volume" {
88 description = "Use Nomad host volume feature"
93 variable "minio_use_canary" {
94 description = "Uses canary deployment for Minio"
99 variable "minio_vault_secret" {
100 description = "Set of properties to be able to fetch secret from vault"
102 use_vault_provider = bool,
103 vault_kv_policy_name = string,
104 vault_kv_path = string,
105 vault_kv_field_access_key = string,
106 vault_kv_field_secret_key = string
110 variable "minio_resource_proxy" {
111 description = "Minio proxy resources"
121 condition = var.minio_resource_proxy.cpu >= 200 && var.minio_resource_proxy.memory >= 128
122 error_message = "Proxy resource must be at least: cpu=200, memory=128."
127 variable "mc_job_name" {
128 description = "Minio client job name"
133 variable "mc_service_name" {
134 description = "Minio client service name"
139 variable "mc_container_image" {
140 description = "Minio client docker image"
142 default = "minio/mc:latest"
146 description = "Minio client environment variables"
151 variable "minio_buckets" {
152 description = "List of buckets to create on startup"
157 variable "minio_upstreams" {
158 description = "List of upstream services (list of object with service_name, port)"
160 service_name = string,
166 variable "mc_extra_commands" {
167 description = "Extra commands to run in MC container after creating buckets"