-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathvariable.tf
More file actions
82 lines (68 loc) · 2.21 KB
/
variable.tf
File metadata and controls
82 lines (68 loc) · 2.21 KB
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
locals {
pod_network_nsip_association = flatten([
for prefix in var.openshift_route_address_prefixes : [
for ip in var.citrixadc_nsips : {
nsip = ip
subnet_prefix = prefix
}
]
])
worker_subnet_nsip_association = flatten([
for ip in var.citrixadc_nsips : {
nsip = ip
subnet_prefix = var.openshift_worker_subnet_prefix
}
])
master_subnet_nsip_association = flatten([
for ip in var.citrixadc_nsips : {
nsip = ip
subnet_prefix = var.openshift_master_subnet_prefix
}
])
subnet_nsip_association = concat(local.pod_network_nsip_association,local.worker_subnet_nsip_association,local.master_subnet_nsip_association)
}
variable "resource_group_name" {
description = "Name for the resource group that will contain all created resources"
default = "terraform-resource-group"
}
variable "location" {
description = "Azure location where all resources will be created"
}
variable "openshift_route_address_prefixes" {
description = "List of prefixes for which routes needs to be created"
type = list(string)
}
variable "openshift_route_addresses_details" {
description = "List of routes details. Key are route prefix and value is route gateway"
type = map(string)
}
variable "citrixadc_nsips" {
description = "Management IPs of Citrix ADC"
}
variable "ha_server_subnet" {
description = "Gateway of Citrix ADC Server Subnet"
}
variable "openshift_worker_subnet_prefix" {
description = "OpenShift worker subnet prefix"
}
variable "openshift_master_subnet_prefix" {
description = "OpenShift master subnet prefix"
}
variable "adc_admin_username" {
description = "User name for the Citrix ADC admin user."
default = "nsroot"
}
variable "adc_admin_password" {
sensitive = true
description = "Password for the Citrix ADC admin user. Must be sufficiently complex to pass azurerm provider checks."
}
variable "bastion_public_ip" {
description = "Public IP of the created Bastion Server"
}
variable "ubuntu_admin_user" {
description = "The Admin Username of the created Bastion Server"
}
variable "ssh_private_key_file" {
description = "Private key file for accessing the ubuntu bastion machine."
default = "~/.ssh/id_rsa"
}