forked from EMC-Underground/terraform_dockerswarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
49 lines (32 loc) · 1004 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
provider "vsphere" {
user = "${var.vsphere_user}"
password = "${var.vsphere_password}"
vsphere_server = "${var.vsphere_server}"
allow_unverified_ssl = true
}
# Stores the terraform state file in S3 bucket.
terraform {
backend "s3" {
bucket = "brad.bucket"
key = "dockerswarm/terraform.tfstate"
region = "us-east-1"
}
}
module "swarm" {
source = "./services/docker_hosts"
node_count = "${var.node_count}"
vm_name_prefix = "${var.vm_name_prefix}"
root_password = "${var.root_password}"
datacenter_name = "${var.datacenter_name}"
cluster_name = "${var.cluster_name}"
datastore = "${var.datastore}"
template_name = "${var.template_name}"
network_0 = "${var.network_0}"
network_1 = "${var.network_1}"
network_2 = "${var.network_2}"
mgmt_ip_prefix = "${var.mgmt_ip_prefix}"
mgmt_netmask = "${var.mgmt_netmask}"
gateway = "${var.gateway}"
dns_servers = "${var.dns_servers}"
domain = "${var.domain}"
}