Revert "fix(jobspec): Delete ipsec nfv density tests"
[csit.git] / fdio.infra.terraform / terraform-nomad-prometheus / variables.tf
1 # Nomad
2 variable "datacenters" {
3   description = "Specifies the list of DCs to be considered placing this task"
4   type        = list(string)
5   default     = ["dc1"]
6 }
7
8 variable "region" {
9   description = "Specifies the list of DCs to be considered placing this task"
10   type        = string
11   default     = "global"
12 }
13
14 variable "volume_source" {
15   description = "The name of the volume to request"
16   type        = string
17   default     = "prod-volume-data1-1"
18 }
19
20 # Prometheus
21 variable "pm_version" {
22   description = "Prometheus version"
23   type        = string
24   default     = "2.42.0"
25 }
26
27 variable "auto_promote" {
28   description = "Specifies if the job should auto-promote to the canary version"
29   type        = bool
30   default     = true
31 }
32
33 variable "auto_revert" {
34   description = "Specifies if the job should auto-revert to the last stable job"
35   type        = bool
36   default     = true
37 }
38
39 variable "canary" {
40   description = "Equal to the count of the task group allows blue/green depl."
41   type        = number
42   default     = 1
43 }
44
45 variable "cpu" {
46   description = "CPU allocation"
47   type        = number
48   default     = 2000
49 }
50
51 variable "constraint_value" {
52   description = "The constraint allows restricting the set of eligible nodes."
53   type        = string
54   default     = "builder"
55 }
56
57 variable "data_dir" {
58   description = "Prometheus DISK allocation"
59   type        = string
60   default     = "/data"
61 }
62
63 variable "group_count" {
64   description = "Specifies the number of the task groups running under this one"
65   type        = number
66   default     = 4
67 }
68
69 variable "job_name" {
70   description = "Specifies a name for the job"
71   type        = string
72   default     = "prometheus"
73 }
74
75 variable "max_parallel" {
76   description = "Specifies the maximum number of updates to perform in parallel"
77   type        = number
78   default     = 1
79 }
80
81 variable "memory" {
82   description = "Specifies the memory required in MB"
83   type        = number
84   default     = 4096
85 }
86
87 variable "port" {
88   description = "Specifies the static TCP/UDP port to allocate"
89   type        = number
90   default     = 9090
91 }
92
93 variable "service_name" {
94   description = "Specifies the name this service will be advertised in Consul"
95   type        = string
96   default     = "prometheus"
97 }
98
99 variable "use_canary" {
100   description = "Uses canary deployment"
101   type        = bool
102   default     = true
103 }
104
105 variable "use_host_volume" {
106   description = "Use Nomad host volume feature"
107   type        = bool
108   default     = true
109 }
110
111 variable "artifact_source_checksum" {
112   description = "Prometheus release checksum"
113   type        = string
114   default     = "422dab055ed9c7bcaff52b718705f9192c6fac0de6b7e78dd278e70ee2663dcc"
115 }
116
117 variable "volume_destination" {
118   description = "Specifies where the volume should be mounted inside the task"
119   type        = string
120   default     = "/data/"
121 }
122
123 variable "vault_secret" {
124   type = object({
125     use_vault_provider        = bool,
126     vault_kv_policy_name      = string,
127     vault_kv_path             = string,
128     vault_kv_field_access_key = string,
129     vault_kv_field_secret_key = string
130   })
131   description = "Set of properties to be able to fetch secret from vault."
132   default = {
133     use_vault_provider        = false
134     vault_kv_policy_name      = "kv"
135     vault_kv_path             = "secret/data/prometheus"
136     vault_kv_field_access_key = "access_key"
137     vault_kv_field_secret_key = "secret_key"
138   }
139 }