Commit b95692c0 authored by John Jarvis's avatar John Jarvis

Adds runner for chatops.

parent 71d18fdc
......@@ -625,6 +625,30 @@ module "deploy" {
vpc = "${module.network.self_link}"
}
##################################
#
# Runner
#
##################################
module "runner" {
bootstrap_version = 3
chef_provision = "${var.chef_provision}"
chef_run_list = "\"role[${var.environment}-base-runner]\""
dns_zone_name = "${var.dns_zone_name}"
environment = "${var.environment}"
ip_cidr_range = "${var.subnetworks["runner"]}"
machine_type = "${var.machine_types["runner"]}"
name = "runner"
node_count = "${var.node_count["runner"]}"
project = "${var.project}"
public_ports = "${var.public_ports["runner"]}"
region = "${var.region}"
source = "../../modules/google/generic-sv"
tier = "sv"
vpc = "${module.network.self_link}"
}
##################################
#
# VPN connection to Azure
......
......@@ -32,6 +32,7 @@ variable "public_ports" {
"api" = [22]
"consul" = [22]
"deploy" = [22]
"runner" = [22]
"db" = [22]
"pgb" = [22]
"fe-lb" = [22, 80, 443, 2222]
......@@ -85,6 +86,7 @@ variable "machine_types" {
"api" = "n1-standard-8"
"consul" = "n1-standard-4"
"deploy" = "n1-standard-2"
"runner" = "n1-standard-2"
"db" = "n1-highmem-32"
"fe-lb" = "n1-standard-4"
"geodb" = "n1-highmem-32"
......@@ -105,6 +107,7 @@ variable "node_count" {
default = {
"api" = 1
"deploy" = 1
"runner" = 1
"artifacts" = 1
"consul" = 3
"db" = 1
......@@ -129,6 +132,7 @@ variable "subnetworks" {
default = {
"api" = "10.220.2.0/23"
"deploy" = "10.218.3.0/24"
"runner" = "10.218.4.0/24"
"consul" = "10.218.1.0/24"
"db" = "10.217.1.0/24"
"fe-lb" = "10.216.1.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