forked from star3am/hashiqube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
164 lines (129 loc) · 5.82 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
output "your_ipaddress" {
value = data.external.myipaddress.result.ip
}
output "aaa_welcome" {
value = <<WELCOME
Your HashiQube instance is busy launching, usually this takes ~5 minutes.
Below are some links to open in your browser, and commands you can copy and paste in a terminal to login via SSH into your HashiQube instance.
Thank you for using this module, you are most welcome to fork this repository to make it your own.
** DO NOT USE THIS IN PRODUCTION **
WELCOME
description = <<WELCOME
A Welcome message. Your HashiQube instance is busy launching, usually this takes ~5 minutes.
Below are some links to open in your browser, and commands you can copy and paste in a terminal to login via SSH into your HashiQube instance.
Thank you for using this module, you are most welcome to fork this repository to make it your own.
** DO NOT USE THIS IN PRODUCTION **
WELCOME
}
output "aab_instructions" {
value = <<INSTRUCTIONS
Use the Hashiqube SSH output below to login to your instance
To get Vault Shamir keys and Root token do "sudo cat /etc/vault/init.file"
INSTRUCTIONS
description = <<INSTRUCTIONS
Use the Hashiqube SSH output below to login to your instance
To get Vault Shamir keys and Root token do "sudo cat /etc/vault/init.file"
INSTRUCTIONS
}
# AWS
output "aws_hashiqube_ip" {
value = var.deploy_to_aws ? try(module.aws-hashiqube[0].hashiqube_ip, null) : null
}
output "aws_hashiqube-ssh" {
value = var.deploy_to_aws ? try("ssh ubuntu@${module.aws-hashiqube[0].hashiqube_ip}", null) : null
}
output "aws_hashiqube-consul" {
value = var.deploy_to_aws ? try("http://${module.aws-hashiqube[0].hashiqube_ip}:8500", null) : null
}
output "aws_hashiqube-nomad" {
value = var.deploy_to_aws ? try("http://${module.aws-hashiqube[0].hashiqube_ip}:4646", null) : null
}
output "aws_hashiqube-vault" {
value = var.deploy_to_aws ? try("http://${module.aws-hashiqube[0].hashiqube_ip}:8200", null) : null
}
output "aws_hashiqube-waypoint" {
value = var.deploy_to_aws ? try("https://${module.aws-hashiqube[0].hashiqube_ip}:9702", null) : null
}
output "aws_hashiqube-boundary" {
value = var.deploy_to_aws ? try("http://${module.aws-hashiqube[0].hashiqube_ip}:19200 username: admin password: password", null) : null
}
output "aws_hashiqube-traefik-ui" {
value = var.deploy_to_aws ? try("http://${module.aws-hashiqube[0].hashiqube_ip}:8181", null) : null
}
output "aws_hashiqube-traefik-lb" {
value = var.deploy_to_aws ? try("http://${module.aws-hashiqube[0].hashiqube_ip}:8080", null) : null
}
output "aws_hashiqube-fabio-ui" {
value = var.deploy_to_aws ? try("http://${module.aws-hashiqube[0].hashiqube_ip}:9998", null) : null
}
output "aws_hashiqube-fabio-lb" {
value = var.deploy_to_aws ? try("http://${module.aws-hashiqube[0].hashiqube_ip}:9999", null) : null
}
# Azure
output "azure_hashiqube_ip" {
value = var.deploy_to_azure ? try(module.azure-hashiqube[0].hashiqube_ip, null) : null
}
output "azure_hashiqube-ssh" {
value = var.deploy_to_azure ? try("ssh ubuntu@${module.azure-hashiqube[0].hashiqube_ip}", null) : null
}
output "azure_hashiqube-consul" {
value = var.deploy_to_azure ? try("http://${module.azure-hashiqube[0].hashiqube_ip}:8500", null) : null
}
output "azure_hashiqube-nomad" {
value = var.deploy_to_azure ? try("http://${module.azure-hashiqube[0].hashiqube_ip}:4646", null) : null
}
output "azure_hashiqube-vault" {
value = var.deploy_to_azure ? try("http://${module.azure-hashiqube[0].hashiqube_ip}:8200", null) : null
}
output "azure_hashiqube-waypoint" {
value = var.deploy_to_azure ? try("https://${module.azure-hashiqube[0].hashiqube_ip}:9702", null) : null
}
output "azure_hashiqube-boundary" {
value = var.deploy_to_azure ? try("http://${module.azure-hashiqube[0].hashiqube_ip}:19200 username: admin password: password", null) : null
}
output "azure_hashiqube-traefik-ui" {
value = var.deploy_to_azure ? try("http://${module.azure-hashiqube[0].hashiqube_ip}:8181", null) : null
}
output "azure_hashiqube-traefik-lb" {
value = var.deploy_to_azure ? try("http://${module.azure-hashiqube[0].hashiqube_ip}:8080", null) : null
}
output "azure_hashiqube-fabio-ui" {
value = var.deploy_to_azure ? try("http://${module.azure-hashiqube[0].hashiqube_ip}:9998", null) : null
}
output "azure_hashiqube-fabio-lb" {
value = var.deploy_to_azure ? try("http://${module.azure-hashiqube[0].hashiqube_ip}:9999", null) : null
}
# GCP
output "gcp_hashiqube_ip" {
value = var.deploy_to_gcp ? try(module.gcp-hashiqube[0].hashiqube_ip, null) : null
}
output "gcp_hashiqube-ssh" {
value = var.deploy_to_gcp ? try("ssh ubuntu@${module.gcp-hashiqube[0].hashiqube_ip}", null) : null
}
output "gcp_hashiqube-consul" {
value = var.deploy_to_gcp ? try("http://${module.gcp-hashiqube[0].hashiqube_ip}:8500", null) : null
}
output "gcp_hashiqube-nomad" {
value = var.deploy_to_gcp ? try("http://${module.gcp-hashiqube[0].hashiqube_ip}:4646", null) : null
}
output "gcp_hashiqube-vault" {
value = var.deploy_to_gcp ? try("http://${module.gcp-hashiqube[0].hashiqube_ip}:8200", null) : null
}
output "gcp_hashiqube-waypoint" {
value = var.deploy_to_gcp ? try("https://${module.gcp-hashiqube[0].hashiqube_ip}:9702", null) : null
}
output "gcp_hashiqube-boundary" {
value = var.deploy_to_gcp ? try("http://${module.gcp-hashiqube[0].hashiqube_ip}:19200 username: admin password: password", null) : null
}
output "gcp_hashiqube-traefik-ui" {
value = var.deploy_to_gcp ? try("http://${module.gcp-hashiqube[0].hashiqube_ip}:8181", null) : null
}
output "gcp_hashiqube-traefik-lb" {
value = var.deploy_to_gcp ? try("http://${module.gcp-hashiqube[0].hashiqube_ip}:8080", null) : null
}
output "gcp_hashiqube-fabio-ui" {
value = var.deploy_to_gcp ? try("http://${module.gcp-hashiqube[0].hashiqube_ip}:9998", null) : null
}
output "gcp_hashiqube-fabio-lb" {
value = var.deploy_to_gcp ? try("http://${module.gcp-hashiqube[0].hashiqube_ip}:9999", null) : null
}