generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
177 lines (132 loc) · 3.31 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
variable "product" {
default = "pre"
}
variable "location" {
default = "UK South"
}
variable "env" {}
variable "jenkins_AAD_objectId" {}
variable "common_tags" {
type = map(string)
}
variable "sa_account_tier" {
default = "Standard"
}
variable "sa_replication_type" {
default = "GRS"
}
variable "vnet_address_space" {}
variable "video_edit_vm_snet_address" {}
variable "privatendpt_snet_address" {}
variable "bastion_snet_address" {}
variable "mgmt_net_rg_name" {}
variable "num_vid_edit_vms" {
default = 1
}
variable "mgmt_net_name" {}
variable "mgmt_subscription_id" {} // set by jenkins library
variable "jenkins_ptlsbox_oid" {
default = "6df94cb5-c203-4493-bc8a-3f6aad1133e1"
}
variable "jenkins_ptlsbox_appid" {
default = "a87b3880-6dce-4f9d-b4c4-c4cf3622cb5d"
}
variable "schedules" {
type = list(object({
name = string
frequency = string
interval = number
run_time = string
start_vm = bool
}))
default = []
}
# Dynatrace
variable "dynatrace_server" {
description = "The server URL, if you want to configure an alternative communication endpoint."
type = string
default = null
}
variable "server" {
default = null
}
variable "hostgroup" {
default = null
}
# Addtional variables required for postgres
// 2 variables with the same value???? see var "product"
variable "project" {
default = "sds"
}
variable "pgsql_admin_username" {
default = "psqladmin"
}
variable "database_name" {
default = "pre-db"
}
variable "pgsql_storage_mb" {
default = "32768"
}
variable "zone" {
description = "Availability Zone for Postgres"
default = "1"
}
# Private DNS zone configuration (for postgres)
variable "dns_resource_group" {
default = "core-infra-intsvc-rg"
}
variable "private_dns_zone" {
default = "private.postgres.database.azure.com"
}
variable "dts_pre_ent_appreg_oid" {}
variable "cors_rules" {
type = list(object({
allowed_headers = list(string)
allowed_methods = list(string)
allowed_origins = list(string)
exposed_headers = list(string)
max_age_in_seconds = number
}))
description = "cors rule for final storage account"
default = [
{
allowed_headers = ["*"]
allowed_methods = ["GET", "POST"]
allowed_origins = ["https://*.justice.gov.uk", "https://*.blob.core.windows.net", "https://*.files.core.windows.net"]
exposed_headers = ["*"]
max_age_in_seconds = 600
}
]
}
variable "retention_duration" {}
variable "tenant_id" {}
variable "vm_type" {
default = "windows"
}
variable "edit_vm_data_disks" {}
variable "edit_vm_private_ip" {}
variable "install_dynatrace_oa" {
default = false
}
variable "pre_ent_appreg_app_id" {}
variable "aks_subscription_id" {
default = "867a878b-cb68-4de5-9741-361ac9e178b6"
}
variable "location_backup" {
default = "UK West"
}
variable "dts_pre_backup_appreg_oid" {}
variable "immutability_period_backup" {}
variable "restore_policy_days" {}
variable "cnp_vault_sub" {
description = "The subscription ID of the subscription that contains the CNP KeyVault"
}
variable "apim_service_url" {
description = "The URL of the pre-api for the APIm service"
}
variable "dev_subscription_id" {
default = "867a878b-cb68-4de5-9741-361ac9e178b6"
}
variable "stg_subscription_id" {
default = "74dacd4f-a248-45bb-a2f0-af700dc4cf68"
}