Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
gitlab-com
gitlab-com-infrastructure
Commits
ebb18f9e
Commit
ebb18f9e
authored
Feb 21, 2018
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding deploy host
parent
a46edd76
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
environments/gprd/main.tf
environments/gprd/main.tf
+25
-0
environments/gprd/variables.tf
environments/gprd/variables.tf
+4
-0
No files found.
environments/gprd/main.tf
View file @
ebb18f9e
...
...
@@ -548,6 +548,31 @@ module "prometheus" {
oauth2_client_secret
=
"
${
var
.
oauth2_client_secret_prometheus
}
"
}
##################################
#
# Deploy
#
##################################
module
"deploy"
{
attach_data_disk
=
false
bootstrap_version
=
3
chef_provision
=
"
${
var
.
chef_provision
}
"
chef_run_list
=
"
\"
role[
${
var
.
environment
}
-base-deploy-node]
\"
"
dns_zone_name
=
"
${
var
.
dns_zone_name
}
"
environment
=
"
${
var
.
environment
}
"
ip_cidr_range
=
"
${
var
.
subnetworks
[
"deploy"
]
}
"
machine_type
=
"
${
var
.
machine_types
[
"deploy"
]
}
"
name
=
"deploy"
node_count
=
"
${
var
.
node_count
[
"deploy"
]
}
"
project
=
"
${
var
.
project
}
"
public_ports
=
"
${
var
.
public_ports
[
"deploy"
]
}
"
region
=
"
${
var
.
region
}
"
source
=
"../../modules/google/generic-pet"
tier
=
"sv"
vpc
=
"
${module
.
network
.
self_link
}
"
}
##################################
#
# VPN connection to Azure
...
...
environments/gprd/variables.tf
View file @
ebb18f9e
...
...
@@ -31,6 +31,7 @@ variable "public_ports" {
default
=
{
"api"
=
[
22
]
"consul"
=
[
22
]
"deploy"
=
[
22
]
"db"
=
[
22
]
"pgb"
=
[
22
]
"fe-lb"
=
[
22
,
80
,
443
,
2222
]
...
...
@@ -83,6 +84,7 @@ variable "machine_types" {
default
=
{
"api"
=
"n1-standard-8"
"consul"
=
"n1-standard-4"
"deploy"
=
"n1-standard-2"
"db"
=
"n1-highmem-32"
"fe-lb"
=
"n1-standard-4"
"geodb"
=
"n1-highmem-32"
...
...
@@ -102,6 +104,7 @@ variable "node_count" {
default
=
{
"api"
=
1
"deploy"
=
1
"artifacts"
=
1
"consul"
=
3
"db"
=
1
...
...
@@ -125,6 +128,7 @@ variable "subnetworks" {
default
=
{
"api"
=
"10.220.2.0/23"
"deploy"
=
"10.218.3.0/24"
"consul"
=
"10.218.1.0/24"
"db"
=
"10.217.1.0/24"
"fe-lb"
=
"10.216.1.0/24"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment