-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathvariables.tf
121 lines (109 loc) · 3.8 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
variable "resource_group_name" {
type = string
description = "The name of the resource group in which the containerized agents will be deployed"
}
variable "location" {
type = string
description = "The Azure location to use for deployment"
}
variable "create_resource_group" {
type = bool
default = true
description = "(Optional) A flag that indicates if the resource group in which the agents will be deployed must be created (true) or imported (false)."
}
variable "enable_vnet_integration" {
type = bool
default = false
description = "(Optional) A flag that indicates if the containerized agents must be deployed into an existing virtual network"
}
variable "vnet_resource_group_name" {
type = string
default = ""
description = "(Optional) The name of the resource group that contains the virtual network in which the containerized agents will be deployed"
}
variable "vnet_name" {
type = string
default = ""
description = "(Optional) The name of the virtual network in which the containerized agents will be deployed"
}
variable "subnet_name" {
type = string
default = ""
description = "(Optional) The name of the subnet of the vnet in which the containerized agents will be deployed"
}
variable "azure_devops_org_name" {
type = string
description = "The name of the Azure DevOps organization in which the containerized agents will be deployed (e.g. https://dev.azure.com/YOUR_ORGANIZATION_NAME, must exist)"
}
variable "azure_devops_personal_access_token" {
type = string
description = "The personal access token to use to connect to Azure DevOps (see https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops#permissions)"
}
variable "linux_agents_configuration" {
type = object({
count = string,
docker_image = string,
docker_tag = string,
agent_name_prefix = string,
agent_pool_name = string,
cpu = string,
memory = string,
user_assigned_identity_ids = list(string),
use_system_assigned_identity = bool
})
description = "(Optional) The configuration of the Linux agents to deploy"
default = {
count = 0,
docker_image = "",
docker_tag = "",
agent_name_prefix = "",
agent_pool_name = "",
cpu = "1",
memory = "2",
user_assigned_identity_ids = [],
use_system_assigned_identity = false
}
}
variable "windows_agents_configuration" {
type = object({
count = string,
docker_image = string,
docker_tag = string,
agent_name_prefix = string,
agent_pool_name = string,
cpu = string,
memory = string
})
description = "(Optional) The configuration of the Windows agents to deploy"
default = {
count = 0,
docker_image = "",
docker_tag = "",
agent_name_prefix = "",
agent_pool_name = "",
cpu = "1",
memory = "2"
}
}
variable "image_registry_credential" {
type = object({
username = string,
password = string,
server = string
})
description = "(Optional) The credentials to use to connect to the Docker private registry where agent images are stored."
default = {
username = "",
password = "",
server = ""
}
}
variable "dns_config" {
type = object({
nameservers = list(string),
search_domains = optional(list(string))
options = optional(list(string))
})
description = "(Optional) The DNS config information for a container group."
default = null
}