masters
dcos-terraform/masters/gcp
Create DC/OS Master instance and have conditional DC/OS Prereqs for GCP
 DC/OS Instances Creates DC/OS Master intances Usage ``hcl module "masters" { source = "dcos-terraform/instance/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_list = "${dat
| Name | Type | Description | Default |
|---|---|---|---|
| ssh_user | string | SSH User | required |
| public_ssh_key | string | SSH Public Key | required |
| master_subnetwork_name | string | Master Subnetwork Name | required |
| num_masters | string | Specify the amount of masters. For redundancy you should have at least 3 | required |
| cluster_name | string | Name of the DC/OS cluster | required |
| disk_type | string | Disk Type to Leverage The GCE disk type. Can be either 'pd-ssd', 'local-ssd', or | required |
| disk_size | string | Disk Size in GB | required |
| machine_type | string | Instance Type | required |
| image | string | Source image to boot from | required |
| labels | map(string) | Add custom labels to all resources | {} |
| zone_list | list(string) | Element by zone list | [] |
| 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" |
| tags | list(string) | Add custom tags to all resources | [] |
| hostname_format | string | Format the hostname inputs are index+1, region, cluster_name | "%[3]s-master%[1]d-%[2]s" |
name_prefix — Name Prefixdisk_type — Disk Type to Leverage The GCE disk type. Can be either 'pd-ssd', 'local-ssd', or 'pd-standard'. (optmaster_subnetwork_name — Master Subnetwork Namenum_masters — Specify the amount of masters. For redundancy you should have at least 3private_ips — List of private ip addresses created by this modulepublic_ips — List of public ip addresses created by this moduledcos_instance_os — Operating system to use. Instead of using your own AMI you could use a provided OS.instances_self_link — List of instance self linksprereq-id — Returns the ID of the prereq script (if user_data or ami are not used)machine_type — Instance Typezone_list — Element by zone listuser_data — User data to be used on these instances (cloud-init)public_ssh_key — SSH Public Keyimage — Source image to boot fromdisk_size — Disk Size in GBos_user — The OS user to be used