-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathvariables.tf
130 lines (108 loc) · 3.25 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
# Variables for Azure infrastructure module
variable "azure_subscription_id" {
type = string
description = "Azure subscription id under which resources will be provisioned"
}
variable "azure_tenant_id" {
type = string
description = "Azure tenant id used to create resources"
}
variable "azure_client_id" {
type = string
description = "Azure client id used to create resources"
}
variable "azure_client_secret" {
type = string
description = "Client secret used to authenticate with Azure apis"
}
variable "azure_location" {
type = string
description = "Azure location used for all resources"
default = "Central India"
}
variable "prefix" {
type = string
description = "Prefix added to names of all resources"
default = "lab"
}
variable "resource_group_name" {
type = string
description = "Resource Group Name"
default = "attendee1"
}
variable "tag_resource_owner" {
type = string
description = "Owner for the resource (as tag)"
default = "[email protected]"
}
variable "tag_group" {
type = string
description = "Group (as tag)"
default = "My Group"
}
variable "tag_department" {
type = string
description = "Department (as tag)"
default = "My Department"
}
variable "tag_stakeholder" {
type = string
description = "Stakeholder (as tag)"
default = "Manager Name"
}
variable "tag_environment" {
type = string
description = "Stakeholder (as tag)"
default = "Test"
}
variable "tag_project" {
type = string
description = "Project (as tag)"
default = "Demo"
}
variable "rancher_server_use_static_public_ip" {
type = bool
description = "Indicate if static public ip should be allocated to rancher server"
default = false
}
# spec: https://docs.microsoft.com/en-us/azure/virtual-machines/dav4-dasv4-series
# pricing: https://azure.microsoft.com/en-us/pricing/details/virtual-machines/linux/
# $0.0622/hour Central India (2 vCPU AMD, 8GB RAM, 16GB SSD) - Standard_D2as_v4
# $0.0896/hour Central India (2 vCPU AMD, 8GB RAM, 16GB SSD) - Standard_B2ms
variable "rancher_server_vm_size" {
type = string
description = "Instance type used for all linux virtual machines"
default = "Standard_B2ms"
}
# $0.1233/hour Central India (4 vCPU AMD, 16GB RAM, 32GB SSD) - Standard_D4as_v4
# $0.179/hour Central India (4 vCPU AMD, 16GB RAM, 32GB SSD) - Standard_B4ms
variable "rke2_node_vm_size" {
type = string
description = "Instance type used for all linux virtual machines"
default = "Standard_B4ms"
}
variable "rancher_version" {
type = string
description = "Rancher server version (format: v0.0.0)"
default = "v2.6.6"
}
variable "cert_manager_version" {
type = string
description = "Version of cert-manager to install alongside Rancher (format: 0.0.0)"
default = "1.7.0"
}
# Required
variable "add_windows_node" {
type = bool
description = "Add a windows node to the workload cluster"
default = false
}
# Local variables used to reduce repetition
locals {
node_username = "azureuser"
}
variable "no_of_downstream_clusters" {
type = number
description = "Specify number of All In One RKE2 clusters"
default = 1
}