-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
173 lines (162 loc) · 6.06 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
variable "cluster_name" {
description = "Variable to provide your desired name for the cluster. The script will create a random name if this is empty"
type = string
default = ""
}
variable "location" {
type = string
default = "australiaeast"
description = "The Azure region in to which to provision the cluster"
}
// ----------------------------------------------------------------------------
// JX Boot variables
// ----------------------------------------------------------------------------
variable "jx_git_url" {
description = "URL for the Jenkins X cluster git repository"
type = string
}
variable "jx_bot_username" {
description = "Bot username used to interact with the Jenkins X cluster git repository"
type = string
}
variable "jx_bot_token" {
description = "Bot token used to interact with the Jenkins X cluster git repository"
type = string
}
// ----------------------------------------------------------------------------
// Cluster variables
// ----------------------------------------------------------------------------
variable "node_count" {
description = "The number of worker nodes to use for the cluster"
type = number
default = 2
}
variable "node_size" {
type = string
default = "Standard_B2ms"
description = "The size of the worker node to use for the cluster"
}
variable "dns_prefix" {
type = string
default = ""
description = "DNS prefix for the cluster. The script will create a random name if this is empty"
}
variable "cluster_version" {
type = string
default = "1.18.10"
description = "Kubernetes version to use for the AKS cluster"
}
variable "network_resource_group_name" {
type = string
default = ""
description = "The name of the resource group in to which to provision network resources. The script will create a random name if this is empty"
}
variable "cluster_resource_group_name" {
type = string
default = ""
description = "The name of the resource group in to which to provision AKS managed cluster. The script will create a random name if this is empty"
}
variable "cluster_node_resource_group_name" {
type = string
default = ""
description = "Resource group name in which to provision AKS cluster nodes. The script will create a random name if this is empty"
}
variable "vnet_cidr" {
type = string
default = "10.8.0.0/16"
description = "The CIDR of the provisioned Virtual Network in Azure in to which worker nodes are placed"
}
variable "subnet_cidr" {
type = string
default = "10.8.0.0/24"
description = "The CIDR of the provisioned subnet within the `vnet_cidr` to to which worker nodes are placed"
}
variable "network_name" {
type = string
default = ""
description = "The name of the Virtual Network in Azure to be created. The script will create a random name if this is empty"
}
variable "cluster_network_model" {
type = string
default = "kubenet"
description = "Variable to define the network model for the cluster. Valid values are either `kubenet` or `azure`"
}
variable "subnet_name" {
type = string
default = ""
description = "The name of the subnet in Azure to be created. The script will create a random name if this is empty"
}
variable "enable_log_analytics" {
type = bool
default = false
description = "Flag to indicate whether to enable Log Analytics integration for cluster"
}
variable "logging_retention_days" {
type = number
default = 30
description = "Number of days to retain logs in Log Analytics if enabled"
}
// ----------------------------------------------------------------------------
// DNS variables
// ---------------------------------------------------------------------------
variable "apex_domain_integration_enabled" {
type = bool
default = false
description = "Flag that when set attempts to create delegation records in apex domain to point to domain created by this module"
}
variable "dns_enabled" {
type = bool
default = false
description = "Flag that when set creates an Azure DNS zone for JX"
}
variable "apex_domain_name" {
type = string
description = "The name of the parent/apex domain in which to create this domain zone, e.g. jenkins-x.io. Required if dns_enabled set to true"
default = ""
}
variable "domain_name" {
type = string
description = "The domain name of the zone to create, e.g. dev-subdomain. Required if dns_enabled set to true"
default = ""
}
variable "apex_resource_group_name" {
type = string
description = "The resource group in which the Azure DNS apex domain resides. Required if apex_domain_integration_enabled is true"
default = ""
}
variable "dns_resource_group_name" {
type = string
description = "Resource group in which to create the Azure DNS zone. The script will create a random name if this is empty"
default = ""
}
// ----------------------------------------------------------------------------
// Secret storage variables
// ---------------------------------------------------------------------------
variable "key_vault_enabled" {
type = string
description = "Flag to indicate whether to provision Azure Key Vault for secret storage"
default = true
}
variable "key_vault_resource_group_name" {
type = string
description = "Resource group to create in which to place key vault"
default = ""
}
variable "key_vault_name" {
type = string
description = "Name of Azure Key Vault to create"
default = ""
}
variable "key_vault_sku" {
type = string
description = "SKU of the Key Vault resource to create. Valid values are standard or premium"
default = "standard"
}
// ----------------------------------------------------------------------------
// Storage variables
// ---------------------------------------------------------------------------
variable "storage_resource_group_name" {
type = string
description = "Resource group to create in which to place storage accounts"
default = ""
}