private-agents

dcos-terraform/private-agents/gcp

Terraform Module HCL GCP

Create DC/OS Private Agents instance and have conditional DC/OS Prereqs for gcp

Install
module "private-agents" {
source = "dcos-terraform/private-agents/gcp"
version = "0.3.0"
}
plain text: /constructs/tfmod-dcos-terraform-private-agents-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-private-agents/job/master/) DC/OS Instances Creates DC/OS Private Agent intances Usage ``hcl module "pvtagts" { 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}" zon

Inputs (19)
NameTypeDescriptionDefault
private_agent_subnetwork_namestringInstance Subnetwork Name required
ssh_userstringSSH User required
num_private_agentsstringSpecify the amount of private agents. These agents will provide your main resour required
cluster_namestringName of the DC/OS cluster required
zone_listlist(string)Element by zone list required
public_ssh_keystringSSH Public Key required
name_prefixstringName Prefix""
machine_typestringInstance Type"n1-standard-2"
user_datastringUser data to be used on these instances (cloud-init)""
labelsmap(string)Add custom labels to all resources{}
hostname_formatstringFormat the hostname inputs are index+1, region, cluster_name"%[3]s-privateagent%[1]d-%[2]s"
guest_accelerator_typestringType of guest accelerator"nvidia-tesla-k80"
tagslist(string)Add custom tags to all resources[]
scheduling_preemptiblestringDeploy instance with preemptible schedulingfalse
imagestringSource image to boot from""
disk_typestringDisk Type to Leverage The GCE disk type. Can be either 'pd-ssd', 'local-ssd', or"pd-ssd"
disk_sizestringDisk Size in GB"120"
dcos_instance_osstringOperating system to use. Instead of using your own AMI you could use a provided "centos_7"
guest_accelerator_countstringCount of guest accelerator type0
Outputs (17)
num_private_agents — Specify the amount of private agents. These agents will provide your main resources
zone_list — Element by zone list
machine_type — Instance Type
image — Source image to boot from
public_ips — List of public ip addresses created by this module
scheduling_preemptible — Deploy instance with preemptible scheduling
instances_self_link — List of instance self links
name_prefix — Name Prefix
disk_type — Disk Type to Leverage The GCE disk type. Can be either 'pd-ssd', 'local-ssd', or 'pd-standard'. (opt
disk_size — Disk Size in GB
public_ssh_key — SSH Public Key
prereq-id — Returns the ID of the prereq script (if user_data or ami are not used)
private_agent_subnetwork_name — Instance Subnetwork Name
user_data — User data to be used on these instances (cloud-init)
os_user — The OS user to be used
private_ips — List of private ip addresses created by this module
dcos_instance_os — Operating system to use. Instead of using your own AMI you could use a provided OS.
Details
FrameworkTerraform Module
LanguageHCL
Version0.3.0
Cloud GCP
★ Stars0
Forks1
Total downloads9.9k
Inputs19
Outputs17
LicenseApache-2.0
Namespacedcos-terraform
Updated