mageru / terraform-azurerm-infrastructure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

DC/OS Azure Infrastucture

This module creates typical DS/OS infrastructure in Azure.

EXAMPLE

module "dcos-infrastructure" {
  source  = "terraform-dcos/infrastructure/azurerm"
  version = "~> 0.1.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
ssh_public_key_file Path to SSH public key. This is mandatory but can be set to an empty string if you want to use ssh_public_key with the key as string. string n/a yes
azurerm_storage_account_name The Azure Storage Account Name for External Exhibitor string "" no
bootstrap_admin_username Bootstrap node SSH User string "" no
bootstrap_dcos_instance_os Bootstrap node tested OSes image string "" no
bootstrap_disk_size Bootstrap node disk size (gb) string "" no
bootstrap_disk_type Bootstrap node disk type. string "Standard_LRS" no
bootstrap_image [BOOTSTRAP] Image to be used map <map> no
bootstrap_vm_size [BOOTSTRAP] Azure virtual machine size string "Standard_B2s" no
dcos_version Specifies which DC/OS version instruction to use. Options: 1.12.3, 1.11.10, etc. See dcos_download_path or dcos_version tree for a full list. string "1.11.4" no
infra_admin_username Global Infra SSH User string "dcos_admin" no
infra_dcos_instance_os Global Infra Tested OSes Image string "centos_7.3" no
infra_disk_size Global Infra Disk Size string "128" no
infra_disk_type Global Infra Disk Type string "Standard_LRS" no
infra_vm_size Global Infra Machine Type string "Standard_DS11_v2" no
location Azure Region string "" no
masters_admin_username Master node SSH User string "" no
masters_dcos_instance_os Master node tested OSes image string "" no
masters_disk_size Masters node disk size (gb) string "" no
masters_disk_type Masters node disk type. string "Standard_LRS" no
masters_image [MASTERS] Image to be used map <map> no
masters_vm_size [MASTERS] Azure virtual machine size string "Standard_D4s_v3" no
num_masters Specify the amount of masters. For redundancy you should have at least 3 string "3" no
num_private_agents Specify the amount of private agents. These agents will provide your main resources string "1" no
num_public_agents Specify the amount of public agents. These agents will host marathon-lb and edgelb string "1" no
private_agents_admin_username Private Agent ndoe SSH User string "" no
private_agents_dcos_instance_os Private agent node tested OSes image string "" no
private_agents_disk_size Private agent node disk size (gb) string "" no
private_agents_disk_type Private agent node disk type. string "Standard_LRS" no
private_agents_image [PRIVATE AGENTS] Image to be used map <map> no
private_agents_vm_size [PRIVATE AGENTS] Azure virtual machine size string "Standard_D4s_v3" no
public_agents_additional_ports List of additional ports allowed for public access on public agents (80 and 443 open by default) list <list> no
public_agents_admin_username Public Agent node SSH User string "" no
public_agents_dcos_instance_os Public Agent node tested OSes image string "" no
public_agents_disk_size Public agent disk size (gb) string "" no
public_agents_disk_type Public agent node disk type. string "Standard_LRS" no
public_agents_image [PUBLIC AGENTS] Image to be used map <map> no
public_agents_vm_size [PUBLIC AGENTS] Azure virtual machine size string "Standard_D4s_v3" no
ssh_public_key SSH public key in authorized keys format (e.g. 'ssh-rsa ..') to be used with the instances. Make sure you added this key to your ssh-agent. string "" no
subnet_range Private IP space to be used in CIDR format string "172.31.0.0/16" no
tags Add custom tags to all resources map <map> no

Outputs

Name Description
azurerm_storage_key Azure Storage Account Access Keys for External Exhibitor
bootstrap.admin_username Bootstrap node SSH User
bootstrap.prereq_id Returns the ID of the prereq script (if image are not used)
bootstrap.private_ip Private IP of the bootstrap instance
bootstrap.public_ip Public IP of the bootstrap instance
lb.masters lb address
lb.masters-internal lb address
lb.public-agents lb address
masters.admin_username Masters node SSH User
masters.prereq_id Returns the ID of the prereq script for masters (if user_data or ami are not used)
masters.private_ips Master instances private IPs
masters.public_ips Master instances public IPs
private_agents.admin_username Private Agents node SSH User
private_agents.prereq_id Returns the ID of the prereq script for private agents (if image are not used)
private_agents.private_ips Private Agent instances private IPs
private_agents.public_ips Private Agent public IPs
public_agents.admin_username Public Agents node SSH User
public_agents.prereq_id Returns the ID of the prereq script for public agents (if image are not used)
public_agents.private_ips Public Agent instances private IPs
public_agents.public_ips Public Agent public IPs

About

License:Apache License 2.0


Languages

Language:HCL 100.0%