e452598fa67e93b35d16e3cbb16359ac77ebd743
[csit.git] / fdio.infra.terraform / 1n_nmd / alertmanager / 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     = "persistence"
18 }
19
20 # Alertmanager
21 variable "am_version" {
22   description = "Alertmanager version"
23   type        = string
24   default     = "0.21.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     = 1000
49 }
50
51 variable "group_count" {
52   description = "Specifies the number of the task groups running under this one"
53   type        = number
54   default     = 1
55 }
56
57 variable "job_name" {
58   description = "Specifies a name for the job"
59   type        = string
60   default     = "alertmanager"
61 }
62
63 variable "max_parallel" {
64   description = "Specifies the maximum number of updates to perform in parallel"
65   type        = number
66   default     = 1
67 }
68
69 variable "memory" {
70   description = "Specifies the memory required in MB"
71   type        = number
72   default     = 1024
73 }
74
75 variable "port" {
76   description = "Specifies the static TCP/UDP port to allocate"
77   type        = number
78   default     = 9093
79 }
80
81 variable "service_name" {
82   description = "Specifies the name this service will be advertised in Consul"
83   type        = string
84   default     = "alertmanager"
85 }
86
87 variable "use_canary" {
88   description = "Uses canary deployment"
89   type        = bool
90   default     = true
91 }
92
93 variable "use_host_volume" {
94   description = "Use Nomad host volume feature"
95   type        = bool
96   default     = false
97 }
98
99 variable "vault_secret" {
100   type = object({
101     use_vault_provider        = bool,
102     vault_kv_policy_name      = string,
103     vault_kv_path             = string,
104     vault_kv_field_access_key = string,
105     vault_kv_field_secret_key = string
106   })
107   description = "Set of properties to be able to fetch secret from vault."
108   default = {
109     use_vault_provider        = false
110     vault_kv_policy_name      = "kv"
111     vault_kv_path             = "secret/data/alertmanager"
112     vault_kv_field_access_key = "access_key"
113     vault_kv_field_secret_key = "secret_key"
114   }
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 "slack_jenkins_api_key" {
124   description = "Alertmanager jenkins slack API key"
125   type        = string
126   default     = "XXXXXXXXX/XXXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX"
127 }
128
129 variable "slack_jenkins_receiver" {
130   description = "Alertmanager jenkins slack receiver"
131   type        = string
132   default     = "jenkins-slack-receiver"
133 }
134
135 variable "slack_jenkins_channel" {
136   description = "Alertmanager jenkins slack channel"
137   type        = string
138   default     = "jenkins-channel"
139 }
140
141 variable "slack_default_api_key" {
142   description = "Alertmanager default slack API key"
143   type        = string
144   default     = "XXXXXXXXX/XXXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX"
145 }
146
147 variable "slack_default_receiver" {
148   description = "Alertmanager default slack receiver"
149   type        = string
150   default     = "default-slack-receiver"
151 }
152
153 variable "slack_default_channel" {
154   description = "Alertmanager default slack channel"
155   type        = string
156   default     = "default-channel"
157 }