-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
107 lines (88 loc) · 3.48 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
terraform {
required_providers {
docker = {
source = "kreuzwerker/docker"
version = "~> 2.13.0"
}
}
}
resource "docker_network" "sandbox_network" {
name = "sandbox"
ipam_config {
subnet = "10.133.133.0/24"
gateway = "10.133.133.254"
}
}
module "aca_py" {
source = "./modules/aca_py"
ledger_browser_id = module.ledger_browser.ledger_browser_container_id
aries_cloudagent_image = var.aries_cloudagent_image
}
module "indy_node1" {
source = "./modules/indy_node1"
indy_network_name = var.indy_network_name
indy_node_image = var.indy_node_image
indy_node1_container_name = var.indy_node1_container_name
indy_node1_external_ports = var.indy_node1_external_ports
indy_node1_ip = var.indy_node1_ip
indy_node1_port = var.indy_node1_port
indy_node1_client_ip = var.indy_node1_client_ip
indy_node1_client_port = var.indy_node1_client_port
indy_node1_name = var.indy_node1_name
indy_controller1_container_name = var.indy_controller1_container_name
indy_controller_image = var.indy_controller_image
docker_sock_host_path = var.sock
}
module "indy_node2" {
source = "./modules/indy_node2"
indy_network_name = var.indy_network_name
indy_node_image = var.indy_node_image
indy_node2_container_name = var.indy_node2_container_name
indy_node2_external_ports = var.indy_node2_external_ports
indy_node2_ip = var.indy_node2_ip
indy_node2_port = var.indy_node2_port
indy_node2_client_ip = var.indy_node2_client_ip
indy_node2_client_port = var.indy_node2_client_port
indy_node2_name = var.indy_node2_name
indy_controller2_container_name = var.indy_controller2_container_name
indy_controller_image = var.indy_controller_image
docker_sock_host_path = var.sock
}
module "indy_node3" {
source = "./modules/indy_node3"
indy_network_name = var.indy_network_name
indy_node_image = var.indy_node_image
indy_node3_container_name = var.indy_node3_container_name
indy_node3_external_ports = var.indy_node3_external_ports
indy_node3_ip = var.indy_node3_ip
indy_node3_port = var.indy_node3_port
indy_node3_client_ip = var.indy_node3_client_ip
indy_node3_client_port = var.indy_node3_client_port
indy_node3_name = var.indy_node3_name
indy_controller3_container_name = var.indy_controller3_container_name
indy_controller_image = var.indy_controller_image
docker_sock_host_path = var.sock
}
module "indy_node4" {
source = "./modules/indy_node4"
indy_network_name = var.indy_network_name
indy_node_image = var.indy_node_image
indy_node4_container_name = var.indy_node4_container_name
indy_node4_external_ports = var.indy_node4_external_ports
indy_node4_ip = var.indy_node4_ip
indy_node4_port = var.indy_node4_port
indy_node4_client_ip = var.indy_node4_client_ip
indy_node4_client_port = var.indy_node4_client_port
indy_node4_name = var.indy_node4_name
indy_controller4_container_name = var.indy_controller4_container_name
indy_controller_image = var.indy_controller_image
docker_sock_host_path = var.sock
}
module "ledger_browser" {
source = "./modules/ledger_browser"
web_server_host_port = "9000"
}
module "tails_server" {
source = "./modules/tails_server"
genesis_url = "http://${module.ledger_browser.ipv4_address}:9000/genesis"
}