Skip to content

Create a DC/OS Bootstrap instance and have conditional DC/OS prereqs for gcp

License

Notifications You must be signed in to change notification settings

dcos-terraform/terraform-gcp-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

DC/OS Instances

Creates DC/OS Bootstrap intance

Usage

module "bootstrap" {
  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                      = "${data.google_compute_zones.available.names}"
}

Inputs

Name Description Type Default Required
bootstrap_subnetwork_name Instance Subnetwork Name string n/a yes
cluster_name Name of the DC/OS cluster string n/a yes
disk_size Disk Size in GB string n/a yes
disk_type Disk Type to Leverage The GCE disk type. Can be either 'pd-ssd', 'local-ssd', or 'pd-standard'. (optional) string n/a yes
image Source image to boot from string n/a yes
machine_type Instance Type string n/a yes
public_ssh_key SSH Public Key string n/a yes
ssh_user SSH User string n/a yes
dcos_instance_os Operating system to use. Instead of using your own AMI you could use a provided OS. string "centos_7.4" no
hostname_format Format the hostname inputs are index+1, region, cluster_name string "%[3]s-bootstrap%[1]d-%[2]s" no
labels Add custom labels to all resources map <map> no
name_prefix Name Prefix string "" no
num_bootstrap Specify the amount of bootstrap. You should have at most 1 string "1" no
scheduling_preemptible Deploy instance with preemptible scheduling string "false" no
tags Add custom tags to all resources list <list> no
user_data User data to be used on these instances (cloud-init) string "" no
zone_list Element by zone list list <list> no

Outputs

Name Description
bootstrap_subnetwork_name Instance Subnetwork Name
dcos_instance_os Operating system to use. Instead of using your own AMI you could use a provided OS.
disk_size Disk Size in GB
disk_type Disk Type to Leverage The GCE disk type. Can be either 'pd-ssd', 'local-ssd', or 'pd-standard'. (optional)
image Source image to boot from
instances_self_link List of instance self links
machine_type Instance Type
name_prefix Name Prefix
num_bootstrap Specify the amount of bootstrap. You should have at most 1
os_user The OS user to be used
prereq-id Returns the ID of the prereq script (if user_data or ami are not used)
private_ip List of private ip addresses created by this module
public_ip List of public ip addresses created by this module
public_ssh_key SSH Public Key
scheduling_preemptible Deploy instance with preemptible scheduling
user_data User data to be used on these instances (cloud-init)
zone_list Element by zone list

About

Create a DC/OS Bootstrap instance and have conditional DC/OS prereqs for gcp

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •