public-agents
dcos-terraform/public-agents/gcp
Create DC/OS Public Agents instance and have conditional DC/OS prereqs for gcp
 DC/OS Instances Creates DC/OS Public Agent intances Usage ``hcl module "pubagts" { source = "dcos-terraform/instances/gcp" version = "~> 0.2.0" num_instance = "${var.instances_count}" disk_size = "${var.gcp_instances_disk_size}" disk_type = "${var.gcp_instances_disktype}" region = "${var.gcp_region}" machine_type = "${var.gcp_instances_gce_type}" cluster_name = "${var.cluster_name}" public_ssh_key = "${var.gcp_ssh_key}" instances_subnetwork_name = "${module.network.instances_subnetwork_name}" instances_targetpool_self_link = "${module.network.instances_targetpool_self_link}" customer_image = "${var.image}" region = "${var.gcp_region}" zone_
| Name | Type | Description | Default |
|---|---|---|---|
| machine_type | string | Instance Type | required |
| public_agent_subnetwork_name | string | Instance Subnetwork Name | required |
| ssh_user | string | SSH User | required |
| image | string | Source image to boot from | required |
| disk_type | string | Disk Type to Leverage The GCE disk type. Can be either 'pd-ssd', 'local-ssd', or | required |
| num_public_agents | string | Specify the amount of public agents. These agents will host marathon-lb and edge | required |
| cluster_name | string | Name of the DC/OS cluster | required |
| disk_size | string | Disk Size in GB | required |
| public_ssh_key | string | SSH Public Key | required |
| user_data | string | User data to be used on these instances (cloud-init) | "" |
| dcos_instance_os | string | Operating system to use. Instead of using your own AMI you could use a provided | "centos_7.5" |
| hostname_format | string | Format the hostname inputs are index+1, region, cluster_name | "%[3]s-publicagent%[1]d-%[2]s" |
| labels | map(string) | Add custom labels to all resources | {} |
| tags | list(string) | Add custom tags to all resources | [] |
| scheduling_preemptible | string | Deploy instance with preemptible scheduling | false |
| name_prefix | string | Name Prefix | "" |
| zone_list | list(string) | Element by zone list | [] |
dcos_instance_os — Operating system to use. Instead of using your own AMI you could use a provided OS.name_prefix — Name Prefixpublic_agent_subnetwork_name — Instance Subnetwork Namepublic_ips — List of public ip addresses created by this modulemachine_type — Instance Typeuser_data — User data to be used on these instances (cloud-init)instances_self_link — List of instance self linksos_user — The OS user to be usedpublic_ssh_key — SSH Public Keyprivate_ips — List of private ip addresses created by this modulenum_public_agents — Specify the amount of public agents. These agents will host marathon-lb and edgelbdisk_type — Disk Type to Leverage The GCE disk type. Can be either 'pd-ssd', 'local-ssd', or 'pd-standard'. (optdisk_size — Disk Size in GBprereq-id — Returns the ID of the prereq script (if user_data or ami are not used)zone_list — Element by zone listimage — Source image to boot fromscheduling_preemptible — Deploy instance with preemptible scheduling. (bool)