-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
208 lines (174 loc) · 4.74 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
################################################################################
# Azure DevOps
################################################################################
variable "create_repo" {
description = "Create Azure Devops Repo."
type = bool
default = true
}
variable "create_service_endpoint" {
description = "Create Service endpoint."
type = bool
default = false
}
variable "create_pipeline" {
description = "Create Azure DevOps pipeline."
type = bool
default = false
}
variable "create_variables_group" {
description = "Create Variable groups in Azure DevOps pipeline."
type = bool
default = false
}
variable "create_branch_policy" {
description = "Create branch policy and build validation."
type = bool
default = false
}
variable "upload_tf_files" {
description = "Upload .tf files."
type = bool
default = false
}
variable "azuredevops_organisation_prefix" {
description = "Azure DevOps URL prefix."
type = string
default = "https://dev.azure.com"
}
variable "azuredevops_organisation" {
type = string
}
variable "azuredevops_token" {
description = "Azure DevOps personal access token."
type = string
sensitive = true
}
variable "project_name" {
description = "Azure DevOps Project name."
type = string
}
variable "project_description" {
description = "Azure DevOps Project description."
type = string
default = null
}
variable "project_visibility" {
description = "Visibility of the project."
type = string
default = "private"
}
variable "project_version_control" {
description = "Version control system."
type = string
default = "Git"
}
variable "project_work_item_template" {
description = "Work item template."
type = string
default = "Agile"
}
variable "project_features" {
description = "Maps of features."
type = map(any)
default = {
"boards" = "disabled"
"repositories" = "disabled"
"pipelines" = "disabled"
"testplans" = "disabled"
"artifacts" = "disabled"
}
}
variable "repo_name" {
description = "Azure Devops Repo name."
type = string
default = "my-repo"
}
variable "repo_default_branch" {
description = "Azure Repo default branch."
type = string
default = "refs/heads/main"
}
variable "service_endpoint_name" {
description = "Service endpoint name."
type = string
default = "Service endpoint"
}
variable "service_endpoint_description" {
description = "Service endpoint description."
type = string
default = "Managed by Terraform"
}
variable "service_endpoint_authentication_scheme" {
description = "Service endpoint authentication scheme."
type = string
default = "WorkloadIdentityFederation"
}
variable "tf_file_path" {
description = ".tf file path."
type = string
default = "tf-files/"
}
################################################################################
# AzureRM
################################################################################
variable "create_storage" {
description = "Create Azure Blob storage for Terraform state."
type = bool
default = false
}
variable "append_random_string" {
description = "Append random string."
type = bool
default = true
}
variable "tenantid" {
description = "Service endpoint Tenant ID."
type = string
default = null
}
variable "subscription_id" {
description = "Service endpoint Subscription ID."
type = string
default = null
}
variable "subscription_name" {
description = "Service endpoint Subscription name."
type = string
default = null
}
variable "location" {
description = "Azure region for Azure Blob storage for Terraform state."
type = string
default = "Australia East"
}
variable "storage_rg_name" {
description = "Azure storage resource group."
type = string
default = "rg-terraform-state-tf"
}
variable "storage_account_name" {
description = "Azure storage account name."
type = string
default = "stterraformstate"
}
variable "storage_account_tier" {
description = "Azure storage tier."
type = string
default = "Standard"
}
variable "storage_account_replication" {
description = "Azure storage replication."
type = string
default = "LRS"
}
variable "storage_container_name" {
description = "Azure storage container."
type = string
default = "tfstate"
}
variable "terraform_blob_key" {
description = "The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container."
type = string
default = "terraform.tfstate"
}