infrastructure
dcos-terraform/infrastructure/gcp
Create DC/OS related GCP Infrastructure
 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\
| Name | Type | Description | Default |
|---|---|---|---|
| admin_ips | list(string) | List of CIDR admin IPs | required |
| infra_public_ssh_key_path | string | Global Infra Public SSH Key | required |
| cluster_name | string | Name of the DC/OS cluster | required |
| private_agent_public_ssh_key_path | string | Private Agent node Public SSH Key | "" |
| labels | map(string) | Add custom labels to all resources | {} |
| master_ssh_user | string | Master node SSH User | "" |
| private_agent_ssh_user | string | Private Agent node SSH User | "" |
| infra_machine_type | string | Global Infra Machine Type | "n1-standard-8" |
| num_public_agents | string | Specify the amount of public agents. These agents will host marathon-lb and edge | "1" |
| bootstrap_machine_type | string | [BOOTSTRAP] Machine type | "" |
| agent_cidr_range | string | Agent CIDR Range | "10.65.0.0/16" |
| public_agent_image | string | Public agent node OS image | "" |
| infra_dcos_instance_os | string | Global Infra Tested OSes Image | "centos_7" |
| forwarding_rule_disable_public_agents | string | Do not create forwarding rules for public agents. ( Needs to be true when num_pu | false |
| master_cidr_range | string | Master CIDR Range | "10.64.0.0/16" |
| master_image | string | Master node OS image | "" |
| private_agent_disk_type | string | Private agent node disk type. | "" |
| master_public_ssh_key_path | string | Master node Public SSH Key | "" |
| infra_disk_size | string | Global Infra Disk Size | "128" |
| bootstrap_dcos_instance_os | string | Bootstrap node tested OSes image | "" |
| bootstrap_image | string | [BOOTSTRAP] Image to be used | "" |
| master_dcos_instance_os | string | Master node tested OSes image | "" |
| num_masters | string | Specify the amount of masters. For redundancy you should have at least 3 | "3" |
| … and 9 more inputs | |||
network_self_link — Self link of the created networkprivate_agents_private_ips — Private Agent instances private IPspublic_agents_public_ips — Public Agent public IPspublic_agents_private_ips — Public Agent instances private IPsprivate_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 listmasters_subnetwork_name — Master instances subnetwork nameprivate_agents_public_ips — Private Agent public IPsprivate_agents_subnetwork_name — Private Agent instances subnetwork namebootstrap_os_user — Bootstrap instance OS default usermasters_os_user — Master instances private OS default userforwarding_rules_masters — Master Forwarding Rulesbootstrap_public_ip — Public IP of the bootstrap instancemasters_public_ips — Master instances public IPsprivate_agents_zone_list — Private Agent zone listprivate_agents_os_user — Private Agent instances private OS default userpublic_agents_os_user — Public Agent instances private OS default userpublic_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 instancemasters_private_ips — Master instances private IPspublic_agents_zone_list — Public Agent zone listpublic_agents_subnetwork_name — Public Agent instances subnetwork namebootstrap_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 Rulesmasters_prereq-id — Returns the ID of the prereq script for masters (if user_data or ami are not used)