This repository was archived by the owner on Apr 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresources.tf
50 lines (45 loc) · 1.41 KB
/
resources.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
50
provider "digitalocean" {
token = "${var.token}"
}
module "keypair" {
source = "common/keypair"
}
module "consul" {
source = "services/consul"
region = "${var.region}"
image = "${var.images["consul"]}"
size = "${var.sizes["consul"]}"
servers = "${var.servers["consul"]}"
fingerprint = "${module.keypair.fingerprint}"
private_key = "${module.keypair.private}"
}
module "vault" {
source = "services/vault"
region = "${var.region}"
image = "${var.images["vault"]}"
size = "${var.sizes["vault"]}"
servers = "${var.servers["vault"]}"
fingerprint = "${module.keypair.fingerprint}"
private_key = "${module.keypair.private}"
consul = "${module.consul.addresses}"
}
module "nomad" {
source = "services/nomad"
region = "${var.region}"
image = "${var.images["nomad"]}"
size = "${var.sizes["nomad"]}"
servers = "${var.servers["nomad"]}"
fingerprint = "${module.keypair.fingerprint}"
private_key = "${module.keypair.private}"
consul = "${module.consul.addresses}"
}
module "agent" {
source = "services/agent"
region = "${var.region}"
image = "${var.images["agent"]}"
size = "${var.sizes["agent"]}"
servers = "${var.servers["agent"]}"
fingerprint = "${module.keypair.fingerprint}"
private_key = "${module.keypair.private}"
consul = "${module.consul.addresses}"
}