infrastructure

dcos-terraform/infrastructure/gcp

Terraform Module HCL GCP

Create DC/OS related GCP Infrastructure

Install
module "infrastructure" {
source = "dcos-terraform/infrastructure/gcp"
version = "0.3.1"
}
plain text: /constructs/tfmod-dcos-terraform-infrastructure-gcp/install.txt
⭐ Source on GitHub 📦 Registry page
README

![Build Status](https://jenkins-terraform.mesosphere.com/service/dcos-terraform-jenkins/job/dcos-terraform/job/terraform-gcp-infrastructure/job/master/) DC/OS GCP Infrastucture This module creates typical DS/OS infrastructure in GCP. EXAMPLE ``hcl 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\

Inputs (49)
NameTypeDescriptionDefault
admin_ipslist(string)List of CIDR admin IPs required
infra_public_ssh_key_pathstringGlobal Infra Public SSH Key required
cluster_namestringName of the DC/OS cluster required
private_agent_public_ssh_key_pathstringPrivate Agent node Public SSH Key""
labelsmap(string)Add custom labels to all resources{}
master_ssh_userstringMaster node SSH User""
private_agent_ssh_userstringPrivate Agent node SSH User""
infra_machine_typestringGlobal Infra Machine Type"n1-standard-8"
num_public_agentsstringSpecify the amount of public agents. These agents will host marathon-lb and edge"1"
bootstrap_machine_typestring[BOOTSTRAP] Machine type""
agent_cidr_rangestringAgent CIDR Range"10.65.0.0/16"
public_agent_imagestringPublic agent node OS image""
infra_dcos_instance_osstringGlobal Infra Tested OSes Image"centos_7"
forwarding_rule_disable_public_agentsstringDo not create forwarding rules for public agents. ( Needs to be true when num_pufalse
master_cidr_rangestringMaster CIDR Range"10.64.0.0/16"
master_imagestringMaster node OS image""
private_agent_disk_typestringPrivate agent node disk type.""
master_public_ssh_key_pathstringMaster node Public SSH Key""
infra_disk_sizestringGlobal Infra Disk Size"128"
bootstrap_dcos_instance_osstringBootstrap node tested OSes image""
bootstrap_imagestring[BOOTSTRAP] Image to be used""
master_dcos_instance_osstringMaster node tested OSes image""
num_mastersstringSpecify the amount of masters. For redundancy you should have at least 3"3"
… and 9 more inputs
Outputs (25)
network_self_link — Self link of the created network
private_agents_private_ips — Private Agent instances private IPs
public_agents_public_ips — Public Agent public IPs
public_agents_private_ips — Public Agent instances private IPs
private_agents_prereq-id — Returns the ID of the prereq script for private agents (if user_data or ami are not used)
masters_zone_list — Master instances zone list
masters_subnetwork_name — Master instances subnetwork name
private_agents_public_ips — Private Agent public IPs
private_agents_subnetwork_name — Private Agent instances subnetwork name
bootstrap_os_user — Bootstrap instance OS default user
masters_os_user — Master instances private OS default user
forwarding_rules_masters — Master Forwarding Rules
bootstrap_public_ip — Public IP of the bootstrap instance
masters_public_ips — Master instances public IPs
private_agents_zone_list — Private Agent zone list
private_agents_os_user — Private Agent instances private OS default user
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)
bootstrap_private_ip — Private IP of the bootstrap instance
masters_private_ips — Master instances private IPs
public_agents_zone_list — Public Agent zone list
public_agents_subnetwork_name — Public Agent instances subnetwork name
bootstrap_prereq-id — Returns the ID of the prereq script for bootstrap (if user_data or ami are not used)
forwarding_rules_public_agents — Public Agent Forwarding Rules
masters_prereq-id — Returns the ID of the prereq script for masters (if user_data or ami are not used)
Details
FrameworkTerraform Module
LanguageHCL
Version0.3.1
Cloud GCP
★ Stars0
Forks2
Total downloads9.6k
Inputs49
Outputs25
LicenseApache-2.0
Namespacedcos-terraform
Updated