Added geodb server

parent 68dd9cd8
......@@ -258,6 +258,32 @@ module "patroni" {
os_disk_size = 100
}
#############################################
module "geo-postgres" {
bootstrap_version = "${var.bootstrap_script_version}"
chef_init_run_list = "\"recipe[gitlab-server::hack_gitlab_ctl_reconfigure]\""
chef_provision = "${var.chef_provision}"
chef_run_list = "\"role[${var.environment}-base-db-geo-postgres]\""
data_disk_size = 5000
data_disk_type = "pd-ssd"
dns_zone_name = "${var.dns_zone_name}"
egress_ports = "${var.egress_ports}"
environment = "${var.environment}"
ip_cidr_range = "${var.subnetworks["geodb"]}"
kernel_version = "${var.default_kernel_version}"
machine_type = "${var.machine_types["geodb"]}"
name = "geo-postgres"
node_count = "${var.node_count["geodb"]}"
project = "${var.project}"
public_ports = "${var.public_ports["geodb"]}"
region = "${var.region}"
service_account_email = "${var.service_account_email}"
source = "git::https://ops.gitlab.net/gitlab-com/gl-infra/terraform-modules/google/generic-stor.git"
tier = "db"
use_new_node_name = true
vpc = "${module.network.self_link}"
}
##################################
#
# Redis
......
......@@ -200,6 +200,7 @@ variable "public_ports" {
"deploy" = []
"db" = []
"fe-lb" = [22, 80, 443]
"geodb" = []
"git" = []
"pubsubbeat" = []
"redis" = []
......@@ -272,6 +273,7 @@ variable "machine_types" {
"consul" = "g1-small"
"deploy" = "n1-standard-2"
"fe-lb" = "n1-standard-1"
"geodb" = "n1-standard-8"
"git" = "n1-standard-16"
"monitoring" = "n1-standard-8"
"redis" = "g1-small"
......@@ -308,6 +310,7 @@ variable "node_count" {
"fe-lb" = 3
"fe-lb-altssh" = 1
"fe-lb-pages" = 1
"geodb" = 1
"git" = 1
"pages" = 1
"patroni" = 3
......@@ -347,6 +350,7 @@ variable "subnetworks" {
"pubsubbeat" = "10.251.18.0/24"
"api" = "10.251.22.0/24"
"git" = "10.251.23.0/24"
"geodb" = "10.251.24.0/24"
"redis" = "10.251.5.0/24"
"sidekiq" = "10.251.25.0/24"
"stor" = "10.251.28.0/24"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment