-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
109 lines (93 loc) · 3.12 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
variable "location_primary" {
type = string
default = null
description = "Azure location of where the exisiting VMs reside"
}
variable "location_secondary" {
type = string
default = null
description = "Azure location of where the VMs will need to be replicated to"
}
variable "asr_cache_resource_group_name" {
type = string
default = null
description = "Azure resource group name of where the storage account for replication cache should be created"
}
variable "resource_group_name_secondary" {
type = string
default = null
description = "Azure resource group for secondary location of replicated resources"
}
variable "asr_vault_name" {
type = string
default = null
description = "Azure ASR Vault Name"
}
variable "existing_vm_primary" {
description = "Azure exisiting VMs information. The object 'vm_pubip' should be set to true if a public IP is required for the VM and the 'vm_datadisks' allows for multiple data disks to be specified"
type = list(object({
vm_name = string
vm_id = string
vm_osdisk_id = string
vm_osdisk_type = string
vm_existing_nic_id = string
vm_pubip = bool
vm_datadisks = list(object({
id = string
type = string
}))
}))
default = []
}
variable "existing_vm_networkinteface_id" {
type = string
default = null
description = "Azure network interface id of interface attached to existing VM"
}
variable "existing_vnet_id_primary" {
type = string
default = null
description = "Azure vNet id of exisitng network where primary VM resides"
}
variable "existing_subnet_id" {
type = string
default = null
description = "Azure subnet id of the existing subnet where one the primary VM resides. Please ensure this subnet has the Microsoft.Storage service endpoint enabled"
}
variable "recovery_point_retention_minutes" {
type = number
default = 24 * 60
description = "ASR policy setting. Sets the recovery point retention in minutes"
}
variable "app_consistent_snapshot_frequency_minutes" {
type = number
default = 4 * 60
description = "ASR policy setting. Sets the application consistent snapshot frequency in minutes"
}
variable "asr_vnet_address_space" {
type = list(string)
description = "The address space that is used by the virtual network setup in the ASR replicated secondary location"
default = ["10.0.0.0/16"]
}
variable "asr_subnet_prefixes" {
description = "The address prefix to use for the subnets in the ASR replicated secondary location"
type = list(string)
default = ["10.0.1.0/24"]
}
variable "tags" {
description = "A map of the tags to use on the resources that are deployed with this module."
type = map(string)
default = {
ENV = "test"
}
}
variable "asr_fabric_primary_name" {
description = "A name to use for the asr fabric primary connection"
type = string
default = "primary-fabric"
}
variable "asr_fabric_secondary_name" {
description = "A name to use for the asr fabric primary connection"
type = string
default = "secondary-fabric"
}