-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
152 lines (127 loc) · 3.11 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
variable "region" {
## https://docs.digitalocean.com/products/platform/availability-matrix/
description = "Default region to deploy infrastructure"
default = "fra1"
}
variable "timezone" {
description = "Default timezone to deploy infrastructure"
default = "Europe/Berlin"
}
variable "vpc_cidr" {
description = "VPC cidr network size"
default = "10.35.0.0/16"
}
variable "domains" {
description = "Domains map per environment production | development"
default = {
production = "magento.com"
development = "magento.net"
}
}
variable "alert_email" {
description = "Send monitoring alerts to this email"
default = "[email protected]"
}
variable "admin_email" {
description = "Send magento related messages to this email"
default = "[email protected]"
}
variable "default_image" {
description = "Create services droplets and packer build from this base default official image"
default = "debian-11-x64"
}
variable "loadbalancer" {
description = "Load balancer size lb-small, lb-medium, or lb-large"
default = {
size = "lb-small"
}
}
variable "services" {
description = "Settings for service droplets"
default = {
elasticsearch = {
size = "s-1vcpu-2gb-intel"
port = "9200"
}
database = {
size = "s-1vcpu-2gb-intel"
port = "3306"
}
rabbitmq = {
size = "s-1vcpu-1gb-intel"
port = "5672"
}
cache = {
size = "s-1vcpu-1gb-intel"
port = "6379"
}
session = {
size = "s-1vcpu-1gb-intel"
port = "6379"
}
media = {
size = "s-1vcpu-1gb-intel"
port = "2049"
volume = "100"
}
}
}
variable "resize_disk" {
description = "Disable or enable disk resize"
default = false
}
variable "packer" {
description = "The size slug of packer build droplet"
default = {
snapshot = "packer-builder-frontend"
size = "s-1vcpu-1gb-intel"
}
}
variable "frontend" {
description = "Size for frontend droplet"
default = {
size = "s-2vcpu-2gb-intel"
}
}
variable "manager" {
description = "Size for manager droplet"
default = {
size = "s-1vcpu-2gb-intel"
}
}
variable "monitoring" {
description = "Enable droplet monitoring"
default = true
}
variable "backups" {
description = "Enable droplet backups"
default = true
}
variable "droplet_agent" {
description = "Force droplet agent error"
default = true
}
variable "php_version" {
description = "PHP version to use"
default = "8.1"
}
variable "varnish_version" {
description = "Varnish version to use"
default = "70"
}
variable "elk_version" {
description = "Elasticsearch version to use"
default = "7.17"
}
variable "mariadb_version" {
description = "MariaDB version to use"
default = "10.5.16"
}
variable "rabbitmq_version" {
description = "RabbitMQ version to use"
default = "3.8"
}
variable "php_packages" {
description = "PHP package to install"
default = "cli fpm common mysql zip gd mbstring curl xml bcmath intl soap oauth lz4 apcu"
}