-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvariables.tf
104 lines (87 loc) · 2.66 KB
/
variables.tf
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
variable "agent_auto_update" {
type = string
default = "minor"
description = "By default, the agent will automatically update itself to the latest minor version"
validation {
condition = contains(["disabled", "minor", "patch"], var.agent_auto_update)
error_message = "Defaults to minor, must be one of *disabled*, *minor*, or *patch*."
}
}
variable "agent_image" {
type = string
default = "hashicorp/tfc-agent"
description = "Name of the Terraform Cloud Agent docker image."
}
variable "agent_log_level" {
type = string
default = "error"
description = "Available log levels are info, error, warn, debug, and trace."
}
variable "agent_name" {
type = string
description = "The TFC agent token description defined in TFC at app/<org>/settings/agents."
}
variable "agent_replicas" {
type = number
default = 1
description = "Replicacount of the terraform cloud agent deployment."
}
variable "agent_token" {
type = string
description = "The TFC agent token generated when the agent was created."
sensitive = true
}
variable "agent_version" {
type = string
default = "latest"
description = "Version of the Terraform Cloud Agent docker image."
}
variable "cluster_access" {
type = bool
default = false
description = "When true, provides the agent access to the cluster to manage Kubernetes resources."
}
variable "cluster_access_rbac_api_groups" {
type = list(string)
default = []
description = "Additional rbac api groups for the rbac role"
}
variable "cluster_access_rbac_resources" {
type = list(string)
default = []
description = "Additional rbac resources for the rbac role"
}
variable "create_namespace" {
type = bool
default = false
description = "When true, creates the namespace for the Terraform Cloud Agent."
}
variable "limits_cpu" {
type = string
default = "2"
description = "CPU hard limits."
}
variable "limits_memory" {
type = string
default = "2Gi"
description = "Memory hard limits."
}
variable "namespace" {
type = string
description = "The namespace to deploy the agent into. Unless create_namespace is true, the namespace must already exist."
}
variable "requests_cpu" {
type = string
default = "500m"
description = "CPU requests."
}
variable "requests_memory" {
type = string
default = "250Mi"
description = "Memory requests."
}
variable "tfc_url" {
type = string
default = "https://app.terraform.io"
description = "The Terraform Cloud endpoint. Must be changed if using Terraform Enterprise."
}