-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
132 lines (113 loc) · 3.24 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
variable "deployment_id" {
description = "Creates a random string that will be used in tagging for correlating the resources used with a deployment of AAP."
type = string
validation {
condition = (length(var.deployment_id) == 8 || length(var.deployment_id) == 0) && (can(regex("^[a-z]", var.deployment_id)) || var.deployment_id == "")
error_message = "deployment_id length should be 8 chars and should contain lower case alphabets only"
}
}
variable "region" {
description = "GCP region."
type = string
default = "us-east1"
}
variable "zone" {
description = "GCP availability zone"
type = string
default = "us-east1-b"
}
variable "machine_type" {
description = "Machine type to use for VM creation."
type = string
default = "n2-standard-2"
}
variable "infrastructure_db_username" {
description = "PostgreSQL username."
type = string
default = "postgres"
}
variable "infrastructure_db_password" {
description = "Initial PostgreSQL root password during creation."
type = string
sensitive = true
}
variable "infrastructure_controller_count" {
description = "The number of instances for controller"
type = number
default = 2
}
variable "infrastructure_controller_machine_type" {
description = "The number of instances for controller"
type = string
default = "n2-standard-2"
}
variable "infrastructure_eda_count" {
description = "The number of EDA instances"
type = number
default = 0
}
variable "infrastructure_eda_machine_type" {
description = "The number of instances for controller"
type = string
default = "n2-standard-2"
}
variable "infrastructure_execution_count" {
description = "The number of execution instances"
type = number
default = 0
}
variable "infrastructure_execution_machine_type" {
description = "The number of instances for controller"
type = string
default = "n2-standard-2"
}
variable "infrastructure_hub_count" {
description = "The number of instances for hub"
type = number
default = 1
}
variable "infrastructure_hub_machine_type" {
description = "The number of instances for controller"
type = string
default = "n2-standard-2"
}
variable "user" {
description = "Username"
type = string
default = "admin"
}
variable "aap_red_hat_username" {
description = "Red Hat account name that will be used for Subscription Management."
type = string
}
variable "aap_red_hat_password" {
description = "Red Hat account password."
type = string
sensitive = true
}
variable "aap_admin_password" {
description = "The admin password to create for Ansible Automation Platform application."
type = string
sensitive = true
}
variable "infrastructure_aap_installer_inventory_path" {
description = "Inventory path on the installer host"
default = "/home/gcp-user/inventory_gcp"
type = string
}
variable "infrastructure_admin_ssh_public_key_filepath" {
description = "Public ssh key file path."
type = string
default = "~/.ssh/id_rsa.pub"
}
variable "infrastructure_admin_ssh_private_key_filepath" {
description = "Private ssh key file path."
type = string
default = "~/.ssh/id_rsa"
}
variable "infrastructure_admin_username" {
type = string
default = "gcp-user"
description = "The admin username of the VM that will be deployed."
nullable = false
}