add geo-postgresql server

parent ab43e548
......@@ -159,6 +159,26 @@ module "pg-bouncer" {
vpc = "${module.network.self_link}"
}
module "geo-postgres" {
attach_data_disk = true
data_disk_size = 5000
data_disk_type = "pd-ssd"
chef_provision = "${var.chef_provision}"
chef_run_list = "${var.base_chef_run_list}"
dns_zone_name = "${var.dns_zone_name}"
environment = "${var.environment}"
ip_cidr_range = "${var.subnetworks["geodb"]}"
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}"
source = "../../modules/google/generic-pet"
tier = "db"
vpc = "${module.network.self_link}"
}
##################################
#
# Redis
......
......@@ -14,6 +14,7 @@ variable "public_ports" {
"db" = [22]
"pgb" = [22]
"exlb" = [22]
"geodb" = [22]
"git" = [22]
"redis" = [22]
"redis-cache" = [22]
......@@ -59,6 +60,7 @@ variable "machine_types" {
"db" = "n1-highmem-32"
"pgb" = "n1-standard-4"
"exlb" = "n1-standard-4"
"geodb" = "n1-highmem-32"
"git" = "n1-standard-16"
"redis" = "n1-highmem-2"
"redis-cache" = "n1-highmem-16"
......@@ -76,6 +78,7 @@ variable "node_count" {
"db" = 1
"pgb" = 1
"exlb" = 1
"geodb" = 1
"git" = 1
"redis" = 1
"redis-cache" = 1
......@@ -93,6 +96,7 @@ variable "subnetworks" {
"db" = "10.217.1.0/24"
"pgb" = "10.217.4.0/24"
"exlb" = "10.216.1.0/24"
"geodb" = "10.217.5.0/24"
"git" = "10.220.4.0/23"
"redis" = "10.217.2.0/24"
"redis-cache" = "10.217.5.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