Skip to content

dcos-terraform/terraform-gcp-infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

DC/OS GCP Infrastucture

This module creates typical DS/OS infrastructure in GCP.

EXAMPLE

module "dcos-infrastructure" {
  source  = "dcos-terraform/infrastructure/gcp"
  version = "~> 0.2.0"

  infra_public_ssh_key_path = "~/.ssh/id_rsa.pub"

  num_masters = "3"
  num_private_agents = "2"
  num_public_agents = "1"
}

Inputs

Name Description Type Default Required
admin_ips List of CIDR admin IPs list n/a yes
cluster_name Name of the DC/OS cluster string n/a yes
infra_public_ssh_key_path Global Infra Public SSH Key string n/a yes
accepted_internal_networks Subnet ranges for all internal networks list <list> no
agent_cidr_range Agent CIDR Range string "10.65.0.0/16" no
bootstrap_dcos_instance_os Bootstrap node tested OSes image string "" no
bootstrap_disk_size Bootstrap node disk size (gb) string "" no
bootstrap_disk_type Bootstrap node disk type. string "" no
bootstrap_image [BOOTSTRAP] Image to be used string "" no
bootstrap_machine_type [BOOTSTRAP] Machine type string "" no
bootstrap_public_ssh_key_path Bootstrap Node Public SSH Key string "" no
bootstrap_ssh_user Bootstrap node SSH User string "" no
forwarding_rule_disable_masters Do not create fowarding rules for masters (admin access + internal access) string "false" no
forwarding_rule_disable_public_agents Do not create forwarding rules for public agents. ( Needs to be true when num_public_agents is 0 ) string "false" no
infra_dcos_instance_os Global Infra Tested OSes Image string "coreos_1576.5.0" no
infra_disk_size Global Infra Disk Size string "128" no
infra_disk_type Global Infra Disk Type string "pd-ssd" no
infra_machine_type Global Infra Machine Type string "n1-standard-8" no
infra_ssh_user Global Infra SSH User string "" no
labels Add custom labels to all resources map <map> no
master_cidr_range Master CIDR Range string "10.64.0.0/16" no
master_dcos_instance_os Master node tested OSes image string "" no
master_disk_size Master node disk size (gb) string "" no
master_disk_type Master node disk type. string "" no
master_image Master node OS image string "" no
master_machine_type Master node machine type string "" no
master_public_ssh_key_path Master node Public SSH Key string "" no
master_ssh_user Master node SSH User string "" no
name_prefix Name Prefix string "" no
num_bootstrap Specify the amount of bootstrap. You should have at most 1 string "1" no
num_masters Specify the amount of masters. For redundancy you should have at least 3 string "3" no
num_private_agents Specify the amount of private agents. These agents will provide your main resources string "1" no
num_public_agents Specify the amount of public agents. These agents will host marathon-lb and edgelb string "1" no
private_agent_dcos_instance_os Private agent node tested OSes image string "" no
private_agent_disk_size Private agent node disk size (gb) string "" no
private_agent_disk_type Private agent node disk type. string "" no
private_agent_image Private agent node OS image string "" no
private_agent_machine_type Private agent node machine type string "" no
private_agent_public_ssh_key_path Private Agent node Public SSH Key string "" no
private_agent_ssh_user Private Agent node SSH User string "" no
public_agent_dcos_instance_os Public Agent node tested OSes image string "" no
public_agent_disk_size Public agent disk size (gb) string "" no
public_agent_disk_type Public agent node disk type. string "" no
public_agent_image Public agent node OS image string "" no
public_agent_machine_type Public agent machine type string "" no
public_agent_public_ssh_key_path Public Agent node Public SSH Key string "" no
public_agent_ssh_user Public Agent node SSH User string "" no
public_agents_additional_ports List of additional ports allowed for public access on public agents (80 and 443 open by default) list <list> no
tags Add custom tags to all resources list <list> no

Outputs

Name Description
bootstrap.os_user Bootstrap instance OS default user
bootstrap.prereq-id Returns the ID of the prereq script for bootstrap (if user_data or ami are not used)
bootstrap.private_ip Private IP of the bootstrap instance
bootstrap.public_ip Public IP of the bootstrap instance
forwarding_rules.masters Master Forwarding Rules
forwarding_rules.public_agents Public Agent Forwarding Rules
masters.os_user Master instances private OS default user
masters.prereq-id Returns the ID of the prereq script for masters (if user_data or ami are not used)
masters.private_ips Master instances private IPs
masters.public_ips Master instances public IPs
masters.subnetwork_name Master instances subnetwork name
masters.zone_list Master instances zone list
network_self_link Self link of the created network
private_agents.os_user Private Agent instances private OS default user
private_agents.prereq-id Returns the ID of the prereq script for private agents (if user_data or ami are not used)
private_agents.private_ips Private Agent instances private IPs
private_agents.public_ips Private Agent public IPs
private_agents.subnetwork_name Private Agent instances subnetwork name
private_agents.zone_list Private Agent zone list
public_agents.os_user Public Agent instances private OS default user
public_agents.prereq-id Returns the ID of the prereq script for public agents (if user_data or ami are not used)
public_agents.private_ips Public Agent instances private IPs
public_agents.public_ips Public Agent public IPs
public_agents.subnetwork_name Public Agent instances subnetwork name
public_agents.zone_list Public Agent zone list

About

Create DC/OS related GCP Infrastructure

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages