-
Notifications
You must be signed in to change notification settings - Fork 6
/
variables.tf
115 lines (97 loc) · 4.5 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
/**
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
variable "ba_project_id" {
type = string
description = "Provide the project ID where you want to deploy the backup/recovery appliance."
}
variable "vpc_host_project_id" {
type = string
description = "Provide the VPC host project ID. In case of a non-shared (dedicated) VPC, this will be the same as the backup/recovery appliance project ID. In case of shared VPC, this will be the project ID of the host VPC project."
}
variable "ms_project_id" {
type = string
description = "Provide the project ID where you want the management server resides in."
}
variable "ba_name" {
type = string
description = "Provide a name for the backup/recovery appliance. The name will be suffixed with four random characters."
}
variable "firewall_source_ip_ranges" {
type = list(string)
default = []
description = "Provide the IP ranges to allow the firewall communication between the management console, the appliance, and other subnets where workloads need to be backed up."
}
variable "ba_registration" {
type = string
default = "true"
description = "Flag to register the backup/recovery appliance with the management console. We recommend changing it to false, once the appliance is successfully registered."
}
variable "region" {
type = string
description = "Provide a region where you want to deploy a backup/recovery appliance."
}
variable "zone" {
type = string
description = "Provide a zone within the selected region where you want to deploy a backup/recovery appliance."
}
variable "network" {
type = string
description = "Provide a network which the appliance will be part of."
}
variable "subnet" {
type = string
description = "Provide a network subnet which the appliance will be part of."
}
variable "management_server_endpoint" {
type = string
description = "Provide a management console endpoint URL. For example, https://bmc-xxxx-dot-us-central1.backupdr.googleusercontent.com/actifio"
}
variable "boot_image" {
type = string
default = "projects/backupdr-images/global/images/sky-11-0-13-278"
description = "Provide the boot image for backup/recovery appliance. Don’t modify this variable to update or upgrade the appliance version. You can upgrade the appliance only through the Backup and DR Service management console."
}
variable "network_tags" {
type = list(string)
description = "Provide the network tags for backup/recovery appliance VM. These tags allow you to apply firewall rules and routes to a specific instance or set of instances."
default = []
}
variable "labels" {
type = map(string)
description = "A set of key-value label pairs to be assigned to the deployed backup/recovery appliance."
default = {}
}
variable "create_ba_service_account" {
type = bool
description = "Flag to create a service account for backup/recovery appliance."
}
variable "assign_roles_to_ba_sa" {
type = bool
description = "Flag to assign the necessary roles to the backup/recovery appliance service account."
}
variable "ba_service_account" {
type = string
description = "Use this if you want to use an existing service account with the backup/recovery appliance. This variable will be ignored if the create_ba_service_account variable is set to true. A unique service account should be used for each new BA deployment else deployment will fail."
default = "none"
}
variable "ba_appliance_type" {
type = string
description = "Specify appliance type that you want to deploy. Supported appliance types are: [ \"STANDARD_FOR_COMPUTE_ENGINE_VMS\" , \"STANDARD_FOR_DATABASES_VMWARE_VMS\" ]"
validation {
condition = contains(["STANDARD_FOR_COMPUTE_ENGINE_VMS", "STANDARD_FOR_DATABASES_VMWARE_VMS"], var.ba_appliance_type)
error_message = "Valid value is one of the following: STANDARD_FOR_COMPUTE_ENGINE_VMS, STANDARD_FOR_DATABASES_VMWARE_VMS."
}
}