152530b96d3f2895bac8e264a7a5b1892eb5343f
[csit.git] / terraform-ci-infra / 1n_nmd / alertmanager / variables.tf
1 # Nomad
2 variable "nomad_datacenters" {
3   description = "Nomad data centers"
4   type        = list(string)
5   default     = [ "dc1" ]
6 }
7
8 # Alermanager
9 variable "alertmanager_job_name" {
10   description = "Job name"
11   type        = string
12   default     = "alertmanager"
13 }
14
15 variable "alertmanager_group_count" {
16   description = "Number of group instances"
17   type        = number
18   default     = 1
19 }
20
21 variable "alertmanager_service_name" {
22   description = "Service name"
23   type        = string
24   default     = "alertmanager"
25 }
26
27 variable "alertmanager_version" {
28   description = "Version"
29   type        = string
30   default     = "0.21.0"
31 }
32
33 variable "alertmanager_use_canary" {
34   description = "Uses canary deployment"
35   type        = bool
36   default     = false
37 }
38
39 variable "alertmanager_vault_secret" {
40   description = "Set of properties to be able to fetch secret from vault"
41   type        = object({
42     use_vault_provider        = bool,
43     vault_kv_policy_name      = string,
44     vault_kv_path             = string,
45     vault_kv_field_access_key = string,
46     vault_kv_field_secret_key = string
47   })
48 }
49
50 variable "alertmanager_cpu" {
51   description = "CPU allocation"
52   type        = number
53   default     = 1000
54 }
55
56 variable "alertmanager_mem" {
57   description = "RAM allocation"
58   type        = number
59   default     = 1024
60 }
61
62 variable "alertmanager_port" {
63   description = "TCP allocation"
64   type        = number
65   default     = 9093
66 }
67
68 variable "alertmanager_default_receiver" {
69   description = "Alertmanager default receiver"
70   type        = string
71   default     = "default-receiver"
72 }
73
74 variable "alertmanager_slack_api_key" {
75   description = "Alertmanager slack API key"
76   type        = string
77   default     = "XXXXXXXXX/XXXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX"
78 }
79
80 variable "alertmanager_slack_channel" {
81   description = "Alertmanager slack channel"
82   type        = string
83   default     = "slack-channel"
84 }