Deploy DC/OS on Azure using Terraform
Get started with using this module by reading the documentation here: README.md
module "dcos" {
source = "dcos-terraform/dcos/azurerm"
version = "~> 0.2.0"
cluster_name = "mydcoscluster"
infra_public_ssh_key_path = "~/.ssh/key.pub"
admin_ips = ['198.51.100.0/24']
num_masters = "3"
num_private_agentss = "2"
num_public_agentss = "1"
dcos_cluster_docker_credentials_enabled = "true"
dcos_cluster_docker_credentials_write_to_etc = "true"
dcos_cluster_docker_credentials_dcos_owned = "false"
dcos_cluster_docker_registry_url = "https://index.docker.io"
dcos_use_proxy = "yes"
dcos_http_proxy = "example.com"
dcos_https_proxy = "example.com"
dcos_no_proxy = <<EOF
# YAML
- "internal.net"
- "169.254.169.254"
EOF
dcos_overlay_network = <<EOF
# YAML
vtep_subnet: 44.128.0.0/20
vtep_mac_oui: 70:B3:D5:00:00:00
overlays:
- name: dcos
subnet: 12.0.0.0/8
prefix: 26
EOF
dcos_rexray_config = <<EOF
# YAML
rexray:
loglevel: warn
modules:
default-admin:
host: tcp://127.0.0.1:61003
storageDrivers:
- ec2
volume:
unmount:
ignoreusedcount: true
EOF
dcos_cluster_docker_credentials = <<EOF
# YAML
auths:
'https://index.docker.io/v1/':
auth: Ze9ja2VyY3licmljSmVFOEJrcTY2eTV1WHhnSkVuVndjVEE=
EOF
# dcos_variant = "ee"
# dcos_license_key_contents = "${file("./license.txt")}"
dcos_variant = "open"
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
admin_ips | List of CIDR admin IPs | list | n/a | yes |
location | Azure Region | 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 |
additional_private_agent_ips | Additional private agent IPs. | list | <list> |
no |
additional_public_agent_ips | Additional public agent IPs. | list | <list> |
no |
ansible_additional_config | Add additional config options to ansible. This is getting merged with generated defaults. Do not specify dcos: |
string | "" |
no |
ansible_bundled_container | Docker container with bundled dcos-ansible and ansible executables | string | "mesosphere/dcos-ansible-bundle:latest" |
no |
avset_platform_fault_domain_count | Availability set platform fault domain count, differs from location to location | string | "3" |
no |
bootstrap_image | [BOOTSTRAP] Image to be used | map | <map> |
no |
bootstrap_os | [BOOTSTRAP] Operating system to use. Instead of using your own AMI you could use a provided OS. | string | "" |
no |
bootstrap_private_ip | Private IP bootstrap nginx is listening on. Used to build the bootstrap URL. | string | "" |
no |
bootstrap_root_volume_size | [BOOTSTRAP] Root volume size in GB | string | "80" |
no |
bootstrap_root_volume_type | [BOOTSTRAP] Root volume type | string | "Standard_LRS" |
no |
bootstrap_vm_size | [BOOTSTRAP] Azure virtual machine size | string | "Standard_B4ms" |
no |
cluster_name | Name of the DC/OS cluster | string | "dcos-example" |
no |
cluster_name_random_string | Add a random string to the cluster name | string | "false" |
no |
custom_dcos_download_path | insert location of dcos installer script (optional) | string | "" |
no |
dcos_adminrouter_tls_1_0_enabled | Indicates whether to enable TLSv1 support in Admin Router. (optional) | string | "" |
no |
dcos_adminrouter_tls_1_1_enabled | Indicates whether to enable TLSv1.1 support in Admin Router. (optional) | string | "" |
no |
dcos_adminrouter_tls_1_2_enabled | Indicates whether to enable TLSv1.2 support in Admin Router. (optional) | string | "" |
no |
dcos_adminrouter_tls_cipher_suite | [Enterprise DC/OS] Indicates whether to allow web browsers to send the DC/OS authentication cookie through a non-HTTPS connection. (optional) | string | "" |
no |
dcos_agent_list | used to list the agents in the config.yaml (optional) | list | <list> |
no |
dcos_audit_logging | [Enterprise DC/OS] enable security decisions are logged for Mesos, Marathon, and Jobs. (optional) | string | "" |
no |
dcos_auth_cookie_secure_flag | [Enterprise DC/OS] allow web browsers to send the DC/OS authentication cookie through a non-HTTPS connection. (optional) | string | "" |
no |
dcos_aws_access_key_id | AWS key ID for exhibitor storage (optional but required with dcos_exhibitor_address) | string | "" |
no |
dcos_aws_region | AWS region for exhibitor storage (optional but required with dcos_exhibitor_address) | string | "" |
no |
dcos_aws_secret_access_key | AWS secret key for exhibitor storage (optional but required with dcos_exhibitor_address) | string | "" |
no |
dcos_aws_template_storage_access_key_id | AWS key ID for CloudFormation template storage (optional) | string | "" |
no |
dcos_aws_template_storage_bucket | AWS CloudFormation bucket name (optional) | string | "" |
no |
dcos_aws_template_storage_bucket_path | AWS CloudFormation bucket path (optional) | string | "" |
no |
dcos_aws_template_storage_region_name | AWS CloudFormation region name (optional) | string | "" |
no |
dcos_aws_template_storage_secret_access_key | AWS secret key for the CloudFormation template (optional) | string | "" |
no |
dcos_aws_template_upload | To automatically upload the customized advanced templates to your S3 bucket. (optional) | string | "" |
no |
dcos_bootstrap_port | Port of the bootstrap URL | string | "8080" |
no |
dcos_bouncer_expiration_auth_token_days | [Enterprise DC/OS] Sets the auth token time-to-live (TTL) for Identity and Access Management. (optional) | string | "" |
no |
dcos_ca_certificate_chain_path | [Enterprise DC/OS] Path (relative to the $DCOS_INSTALL_DIR) to a file containing the complete CA certification chain required for end-entity certificate verification, in the OpenSSL PEM format. (optional) | string | "" |
no |
dcos_ca_certificate_key_path | [Enterprise DC/OS] Path (relative to the $DCOS_INSTALL_DIR) to a file containing a single X.509 certificate private key in the OpenSSL PEM format. (optional) | string | "" |
no |
dcos_ca_certificate_path | [Enterprise DC/OS] Path (relative to the $DCOS_INSTALL_DIR) to a file containing a single X.509 CA certificate in the OpenSSL PEM format. (optional) | string | "" |
no |
dcos_check_time | Check if Network Time Protocol (NTP) is enabled during DC/OS startup. (optional) | string | "" |
no |
dcos_cluster_docker_credentials | Dictionary of Docker credentials to pass. (optional) | string | "" |
no |
dcos_cluster_docker_credentials_dcos_owned | Indicates whether to store the credentials file in /opt/mesosphere or /etc/mesosphere/docker_credentials. A sysadmin cannot edit /opt/mesosphere directly (optional) | string | "" |
no |
dcos_cluster_docker_credentials_enabled | Indicates whether to pass the Mesos --docker_config option to Mesos. (optional) | string | "" |
no |
dcos_cluster_docker_credentials_write_to_etc | Indicates whether to write a cluster credentials file. (optional) | string | "" |
no |
dcos_cluster_docker_registry_enabled | DC/OS cluster docker registry enabled | string | "" |
no |
dcos_cluster_docker_registry_url | The custom URL that Mesos uses to pull Docker images from. If set, it will configure the Mesos --docker_registry flag to the specified URL. (optional) | string | "" |
no |
dcos_cluster_name | sets the DC/OS cluster name | string | "" |
no |
dcos_config | used to add any extra arguments in the config.yaml that are not specified here. (optional) | string | "" |
no |
dcos_custom_checks | Custom installation checks that are added to the default check configuration process. (optional) | string | "" |
no |
dcos_customer_key | [Enterprise DC/OS] sets the customer key (optional) | string | "" |
no |
dcos_dns_bind_ip_blacklist | A list of IP addresses that DC/OS DNS resolvers cannot bind to. (optional) | string | "" |
no |
dcos_dns_forward_zones | Allow to forward DNS to certain domain requests to specific server. The following syntax must be used in combination with Terraform string heredoc. (optional) (:warning: DC/OS 1.10+) | string | "" |
no |
dcos_dns_search | A space-separated list of domains that are tried when an unqualified domain is entered. (optional) | string | "" |
no |
dcos_docker_remove_delay | The amount of time to wait before removing stale Docker images stored on the agent nodes and the Docker image generated by the installer. (optional) | string | "" |
no |
dcos_enable_docker_gc | Indicates whether to run the docker-gc script, a simple Docker container and image garbage collection script, once every hour to clean up stray Docker containers. (optional) | string | "" |
no |
dcos_enable_gpu_isolation | Indicates whether to enable GPU support in DC/OS. (optional) | string | "" |
no |
dcos_enable_mesos_input_plugin | Indicates whether to enable Telegraf's Mesos input plugin to collect Mesos metrics from Mesos masters and agents. Options: true or false (optional) |
string | "" |
no |
dcos_exhibitor_address | The address of the load balancer in front of the masters (recommended) | string | "" |
no |
dcos_exhibitor_azure_account_key | the azure account key for exhibitor storage (optional but required with dcos_exhibitor_address) | string | "" |
no |
dcos_exhibitor_azure_account_name | the azure account name for exhibitor storage (optional but required with dcos_exhibitor_address) | string | "" |
no |
dcos_exhibitor_azure_prefix | the azure account name for exhibitor storage (optional but required with dcos_exhibitor_address) | string | "" |
no |
dcos_exhibitor_explicit_keys | set whether you are using AWS API keys to grant Exhibitor access to S3. (optional) | string | "" |
no |
dcos_exhibitor_storage_backend | options are static, aws_s3, azure, or zookeeper (recommended) | string | "static" |
no |
dcos_exhibitor_zk_hosts | a comma-separated list of one or more ZooKeeper node IP and port addresses to use for configuring the internal Exhibitor instances. (not recommended but required with exhibitor_storage_backend set to ZooKeeper. Use aws_s3 or azure instead. Assumes external ZooKeeper is already online.) | string | "" |
no |
dcos_exhibitor_zk_path | the filepath that Exhibitor uses to store data (not recommended but required with exhibitor_storage_backend set to zookeeper. Use aws_s3 or azureinstead. Assumes external ZooKeeper is already online.) | string | "" |
no |
dcos_fault_domain_detect_contents | [Enterprise DC/OS] fault domain script contents. Optional but required if no fault-domain-detect script present. | string | "" |
no |
dcos_fault_domain_enabled | [Enterprise DC/OS] used to control if fault domain is enabled | string | "" |
no |
dcos_gc_delay | The maximum amount of time to wait before cleaning up the executor directories (optional) | string | "" |
no |
dcos_gpus_are_scarce | Indicates whether to treat GPUs as a scarce resource in the cluster. (optional) | string | "" |
no |
dcos_http_proxy | http proxy (optional) | string | "" |
no |
dcos_https_proxy | https proxy (optional) | string | "" |
no |
dcos_install_mode | Type of command to execute. Options: install or upgrade | string | "install" |
no |
dcos_instance_os | Operating system to use. Instead of using your own AMI you could use a provided OS. | string | "centos_7.6" |
no |
dcos_ip_detect_contents | Allows DC/OS to detect your private address. Use this to pass this as an input to the module rather than a file in side your bootstrap node. (recommended) | string | "" |
no |
dcos_ip_detect_public_contents | Allows DC/OS to be aware of your publicly routeable address for ease of use (recommended) | string | "" |
no |
dcos_ip_detect_public_filename | statically set your detect-ip-public path | string | "genconf/ip-detect-public" |
no |
dcos_l4lb_enable_ipv6 | A boolean that indicates if layer 4 load balancing is available for IPv6 networks. (optional) | string | "" |
no |
dcos_license_key_contents | [Enterprise DC/OS] used to privide the license key of DC/OS for Enterprise Edition. Optional if license.txt is present on bootstrap node. | string | "" |
no |
dcos_log_directory | The path to the installer host logs from the SSH processes. (optional) | string | "" |
no |
dcos_master_discovery | The Mesos master discovery method. The available options are static or master_http_loadbalancer. (recommend the use of master_http_loadbalancer) | string | "static" |
no |
dcos_master_dns_bindall | Indicates whether the master DNS port is open. (optional) | string | "" |
no |
dcos_master_external_loadbalancer | Allows DC/OS to configure certs around the External Load Balancer name. If not used SSL verfication issues will arrise. EE only. (recommended) | string | "" |
no |
dcos_master_list | statically set your master nodes (not recommended but required with exhibitor_storage_backend set to static. Use aws_s3 or azure instead, that way you can replace masters in the cloud.) | list | <list> |
no |
dcos_mesos_container_log_sink | The log manager for containers (tasks). The options are to send logs to: 'journald', 'logrotate', 'journald+logrotate'. (optional) | string | "" |
no |
dcos_mesos_dns_set_truncate_bit | Indicates whether to set the truncate bit if the response is too large to fit in a single packet. (optional) | string | "" |
no |
dcos_mesos_max_completed_tasks_per_framework | The number of completed tasks for each framework that the Mesos master will retain in memory. (optional) | string | "" |
no |
dcos_no_proxy | A YAML nested list (-) of addresses to exclude from the proxy. (optional) | string | "" |
no |
dcos_num_masters | set the num of master nodes (required with exhibitor_storage_backend set to aws_s3, azure, ZooKeeper) | string | "" |
no |
dcos_oauth_enabled | [Open DC/OS Only] Indicates whether to enable authentication for your cluster. (optional) | string | "" |
no |
dcos_overlay_config_attempts | Specifies how many failed configuration attempts are allowed before the overlay configuration modules stop trying to configure an virtual network. (optional) | string | "" |
no |
dcos_overlay_enable | Enable to disable overlay (optional) | string | "" |
no |
dcos_overlay_mtu | The maximum transmission unit (MTU) of the Virtual Ethernet (vEth) on the containers that are launched on the overlay. (optional) | string | "" |
no |
dcos_overlay_network | This group of parameters define an virtual network for DC/OS. (optional) | string | "" |
no |
dcos_package_storage_uri | Where to permanently store DC/OS packages. The value must be a file URL. (optional) | string | "" |
no |
dcos_previous_version | DC/OS 1.9+ requires users to set this value to ensure users know the version. Terraform helps populate this value, but users can override it here. (recommended) | string | "" |
no |
dcos_previous_version_master_index | Used to track the index of master for quering the previous DC/OS version during upgrading. (optional) applicable: 1.9+ | string | "0" |
no |
dcos_process_timeout | The allowable amount of time, in seconds, for an action to begin after the process forks. (optional) | string | "" |
no |
dcos_public_agent_list | statically set your public agents (not recommended) | list | <list> |
no |
dcos_resolvers | A YAML nested list (-) of DNS resolvers for your DC/OS cluster nodes. (recommended) | list | <list> |
no |
dcos_rexray_config | The REX-Ray configuration method for enabling external persistent volumes in Marathon. (optional) | string | "" |
no |
dcos_rexray_config_filename | The REX-Ray configuration filename for enabling external persistent volumes in Marathon. (optional) | string | "" |
no |
dcos_rexray_config_method | The REX-Ray configuration method for enabling external persistent volumes in Marathon. (optional) | string | "" |
no |
dcos_s3_bucket | name of the s3 bucket for the exhibitor backend (recommended but required with dcos_exhibitor_address) | string | "" |
no |
dcos_s3_prefix | name of the s3 prefix for the exhibitor backend (recommended but required with dcos_exhibitor_address) | string | "" |
no |
dcos_security | [Enterprise DC/OS] set the security level of DC/OS, either 'strict' or 'permissive'. Default is 'permissive'. (recommended) | string | "" |
no |
dcos_skip_checks | Upgrade option: Used to skip all dcos checks that may block an upgrade if any DC/OS component is unhealthly. (optional) applicable: 1.10+ | string | "false" |
no |
dcos_staged_package_storage_uri | Where to temporarily store DC/OS packages while they are being added. (optional) | string | "" |
no |
dcos_superuser_password_hash | [Enterprise DC/OS] set the superuser password hash (recommended) | string | "" |
no |
dcos_superuser_username | [Enterprise DC/OS] set the superuser username (recommended) | string | "" |
no |
dcos_telemetry_enabled | Change the telemetry option (optional) | string | "" |
no |
dcos_ucr_default_bridge_subnet | IPv4 subnet allocated to the mesos-bridge CNI network for UCR bridge-mode networking. (optional) | string | "" |
no |
dcos_use_proxy | To enable use of proxy for internal routing (optional) | string | "" |
no |
dcos_variant | Specifies which DC/OS variant it should be: open (Open Source) or ee (Enterprise Edition) |
string | "open" |
no |
dcos_version | Specifies which DC/OS version instruction to use. Options: 1.13.2, 1.12.4, 1.11.10, etc. See dcos_download_path or dcos_version tree for a full list. | string | "1.13.2" |
no |
dcos_zk_agent_credentials | [Enterprise DC/OS] set the ZooKeeper agent credentials (recommended) | string | "" |
no |
dcos_zk_master_credentials | [Enterprise DC/OS] set the ZooKeeper master credentials (recommended) | string | "" |
no |
dcos_zk_super_credentials | [Enterprise DC/OS] set the zk super credentials (recommended) | string | "" |
no |
masters_image | [MASTERS] Image to be used | map | <map> |
no |
masters_os | [MASTERS] Operating system to use. Instead of using your own AMI you could use a provided OS. | string | "" |
no |
masters_root_volume_size | [MASTERS] Root volume size in GB | string | "120" |
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_of_private_agents | Specify the amount of private agents. These agents will provide your main resources | string | "" |
no |
num_of_public_agents | Specify the amount of public agents. These agents will host marathon-lb and edgelb | string | "" |
no |
num_private_agents | Specify the amount of private agents. These agents will provide your main resources | string | "2" |
no |
num_public_agents | Specify the amount of public agents. These agents will host marathon-lb and edgelb | string | "1" |
no |
private_agents_image | [PRIVATE AGENTS] Image to be used | map | <map> |
no |
private_agents_os | [PRIVATE AGENTS] Operating system to use. Instead of using your own AMI you could use a provided OS. | string | "" |
no |
private_agents_root_volume_size | [PRIVATE AGENTS] Root volume size in GB | string | "120" |
no |
private_agents_root_volume_type | [PRIVATE AGENTS] Root volume type | string | "Standard_LRS" |
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_image | [PUBLIC AGENTS] Image to be used | map | <map> |
no |
public_agents_os | [PUBLIC AGENTS] Operating system to use. Instead of using your own AMI you could use a provided OS. | string | "" |
no |
public_agents_root_volume_size | [PUBLIC AGENTS] Root volume size | string | "120" |
no |
public_agents_root_volume_type | [PUBLIC AGENTS] Specify the root volume type. | string | "Standard_LRS" |
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.12.0.0/16" |
no |
tags | Add custom tags to all resources | map | <map> |
no |
Name | Description |
---|---|
azurerm_storage_key | Azure Storage Account Access Keys for External Exhibitor |
infrastructure.bootstrap.admin_username | Bootstrap instance OS default user |
infrastructure.bootstrap.nsg_id | Network security group id of the bootstrap instance |
infrastructure.bootstrap.private_ip | Private IP of the bootstrap instance |
infrastructure.bootstrap.public_ip | Public IP of the bootstrap instance |
infrastructure.masters.admin_username | Master instances OS default user |
infrastructure.masters.nsg_id | Network security group id of the master instances |
infrastructure.masters.private_ips | Master instances private IPs |
infrastructure.masters.public_ips | Master instances public IPs |
infrastructure.private_agents.admin_username | Private Agent instances OS default user |
infrastructure.private_agents.nsg_id | Network security group id of the private agent instances |
infrastructure.private_agents.private_ips | Private Agent instances private IPs |
infrastructure.private_agents.public_ips | Private Agent public IPs |
infrastructure.public_agents.admin_username | Public Agent instances OS default user |
infrastructure.public_agents.nsg_id | Network security group id of the public agent instances |
infrastructure.public_agents.private_ips | Public Agent instances private IPs |
infrastructure.public_agents.public_ips | Public Agent public IPs |
infrastructure.resource_group_name | Name of the resource group |
infrastructure.subnet_id | Subnet ID of the infrastructure |
infrastructure.vnet_id | ID of the VNET |
infrastructure.vnet_name | Name of the VNET |
masters-internal-loadbalancer | This is the internal load balancer address to access the DC/OS Services |
masters-ips | Master IP addresses |
masters-loadbalancer | This is the load balancer address to access the DC/OS UI |
public-agents-loadbalancer | This is the load balancer address to access the DC/OS public agents |