-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
35 lines (23 loc) · 1.2 KB
/
outputs.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
output "IP_Addresses" {
value = <<CONFIGURATION
Client public IPs: ${join(" ", module.hashistack.client_public_ips)}
Server public IPs: ${join(" ", module.hashistack.server_public_ips)}
To connect, add your private key and SSH into any client or server with
`ssh ubuntu@PUBLIC_IP`. You can test the integrity of the cluster by running:
$ consul members
$ nomad server members
$ nomad node status
If you see an error message like the following when running any of the above
commands, it usually indicates that the configuration script has not finished
executing:
"Error querying servers: Get http://127.0.0.1:4646/v1/agent/members: dial tcp
127.0.0.1:4646: getsockopt: connection refused"
Simply wait a few seconds and rerun the command if this occurs.
The Nomad UI can be accessed at http://${module.hashistack.server_lb_ip}:4646/ui.
The Consul UI can be accessed at http://${module.hashistack.server_lb_ip}:8500/ui.
The Vault UI can be accessed at http://${module.hashistack.server_lb_ip}:8200/ui.
The Fabio UI can be access at http://${module.hashistack.client_lb_ip}:9998.
Set the following for access from the Nomad CLI:
export NOMAD_ADDR=http://${module.hashistack.server_lb_ip}:4646
CONFIGURATION
}