-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathoutputs.tf
213 lines (175 loc) · 8.18 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
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
description = "Hashiqube on AWS IP address"
}
output "aws_hashiqube_ssh" {
value = var.deploy_to_aws ? try("ssh ubuntu@${module.aws_hashiqube[0].hashiqube_ip}", null) : null
description = "Hashiqube on AWS SSH connection string"
}
output "aws_hashiqube_consul" {
value = var.deploy_to_aws ? try("http://${module.aws_hashiqube[0].hashiqube_ip}:8500", null) : null
description = "Hashiqube on AWS Consul URL"
}
output "aws_hashiqube_nomad" {
value = var.deploy_to_aws ? try("http://${module.aws_hashiqube[0].hashiqube_ip}:4646", null) : null
description = "Hashiqube on AWS Nomad URL"
}
output "aws_hashiqube_vault" {
value = var.deploy_to_aws ? try("http://${module.aws_hashiqube[0].hashiqube_ip}:8200", null) : null
description = "Hashiqube on AWS Vault URL"
}
output "aws_hashiqube_waypoint" {
value = var.deploy_to_aws ? try("https://${module.aws_hashiqube[0].hashiqube_ip}:9702", null) : null
description = "Hashiqube on AWS Waypoint URL"
}
output "aws_hashiqube_boundary" {
value = var.deploy_to_aws ? try("http://${module.aws_hashiqube[0].hashiqube_ip}:19200 username: admin password: password", null) : null
description = "Hashiqube on AWS Boundary URL"
}
output "aws_hashiqube_traefik_ui" {
value = var.deploy_to_aws ? try("http://${module.aws_hashiqube[0].hashiqube_ip}:8181", null) : null
description = "Hashiqube on AWS Traefik UI URL"
}
output "aws_hashiqube_traefik_lb" {
value = var.deploy_to_aws ? try("http://${module.aws_hashiqube[0].hashiqube_ip}:8080", null) : null
description = "Hashiqube on AWS Traefik LB URL"
}
output "aws_hashiqube_fabio_ui" {
value = var.deploy_to_aws ? try("http://${module.aws_hashiqube[0].hashiqube_ip}:9998", null) : null
description = "Hashiqube on AWS Fabio UI URL"
}
output "aws_hashiqube_fabio_lb" {
value = var.deploy_to_aws ? try("http://${module.aws_hashiqube[0].hashiqube_ip}:9999", null) : null
description = "Hashiqube on AWS Fabio LB URL"
}
# Azure
output "azure_hashiqube_ip" {
value = var.deploy_to_azure ? try(module.azure_hashiqube[0].hashiqube_ip, null) : null
description = "Hashiqube on Azure IP address"
}
output "azure_hashiqube_ssh" {
value = var.deploy_to_azure ? try("ssh ubuntu@${module.azure_hashiqube[0].hashiqube_ip}", null) : null
description = "Hashiqube on Azure SSH connection string"
}
output "azure_hashiqube_consul" {
value = var.deploy_to_azure ? try("http://${module.azure_hashiqube[0].hashiqube_ip}:8500", null) : null
description = "Hashiqube on Azure Consul URL"
}
output "azure_hashiqube_nomad" {
value = var.deploy_to_azure ? try("http://${module.azure_hashiqube[0].hashiqube_ip}:4646", null) : null
description = "Hashiqube on Azure Nomad URL"
}
output "azure_hashiqube_vault" {
value = var.deploy_to_azure ? try("http://${module.azure_hashiqube[0].hashiqube_ip}:8200", null) : null
description = "Hashiqube on Azure Vault URL"
}
output "azure_hashiqube_waypoint" {
value = var.deploy_to_azure ? try("https://${module.azure_hashiqube[0].hashiqube_ip}:9702", null) : null
description = "Hashiqube on Azure Waypoint URL"
}
output "azure_hashiqube_boundary" {
value = var.deploy_to_azure ? try("http://${module.azure_hashiqube[0].hashiqube_ip}:19200 username: admin password: password", null) : null
description = "Hashiqube on Azure Boundary URL"
}
output "azure_hashiqube_traefik_ui" {
value = var.deploy_to_azure ? try("http://${module.azure_hashiqube[0].hashiqube_ip}:8181", null) : null
description = "Hashiqube on Azure Traefik UI URL"
}
output "azure_hashiqube_traefik_lb" {
value = var.deploy_to_azure ? try("http://${module.azure_hashiqube[0].hashiqube_ip}:8080", null) : null
description = "Hashiqube on Azure Traefik LB URL"
}
output "azure_hashiqube_fabio_ui" {
value = var.deploy_to_azure ? try("http://${module.azure_hashiqube[0].hashiqube_ip}:9998", null) : null
description = "Hashiqube on Azure Fabio UI URL"
}
output "azure_hashiqube_fabio_lb" {
value = var.deploy_to_azure ? try("http://${module.azure_hashiqube[0].hashiqube_ip}:9999", null) : null
description = "Hashiqube on Azure Fabio LB URL"
}
# GCP
output "gcp_hashiqube_ip" {
value = var.deploy_to_gcp ? try(module.gcp_hashiqube[0].hashiqube_ip, null) : null
description = "Hashiqube on GCP IP address"
}
output "gcp_hashiqube_ssh" {
value = var.deploy_to_gcp ? try("ssh ubuntu@${module.gcp_hashiqube[0].hashiqube_ip}", null) : null
description = "Hashiqube on GCP SSH connection string"
}
output "gcp_hashiqube_consul" {
value = var.deploy_to_gcp ? try("http://${module.gcp_hashiqube[0].hashiqube_ip}:8500", null) : null
description = "Hashiqube on GCP Consul URL"
}
output "gcp_hashiqube_nomad" {
value = var.deploy_to_gcp ? try("http://${module.gcp_hashiqube[0].hashiqube_ip}:4646", null) : null
description = "Hashiqube on GCP Nomad URL"
}
output "gcp_hashiqube_vault" {
value = var.deploy_to_gcp ? try("http://${module.gcp_hashiqube[0].hashiqube_ip}:8200", null) : null
description = "Hashiqube on GCP Vault URL"
}
output "gcp_hashiqube_waypoint" {
value = var.deploy_to_gcp ? try("https://${module.gcp_hashiqube[0].hashiqube_ip}:9702", null) : null
description = "Hashiqube on GCP Waypoint URL"
}
output "gcp_hashiqube_boundary" {
value = var.deploy_to_gcp ? try("http://${module.gcp_hashiqube[0].hashiqube_ip}:19200 username: admin password: password", null) : null
description = "Hashiqube on GCP Boundary URL"
}
output "gcp_hashiqube_traefik_ui" {
value = var.deploy_to_gcp ? try("http://${module.gcp_hashiqube[0].hashiqube_ip}:8181", null) : null
description = "Hashiqube on GCP Traefik UI URL"
}
output "gcp_hashiqube_traefik_lb" {
value = var.deploy_to_gcp ? try("http://${module.gcp_hashiqube[0].hashiqube_ip}:8080", null) : null
description = "Hashiqube on GCP Traefik LB URL"
}
output "gcp_hashiqube_fabio_ui" {
value = var.deploy_to_gcp ? try("http://${module.gcp_hashiqube[0].hashiqube_ip}:9998", null) : null
description = "Hashiqube on GCP Fabio UI URL"
}
output "gcp_hashiqube_fabio_lb" {
value = var.deploy_to_gcp ? try("http://${module.gcp_hashiqube[0].hashiqube_ip}:9999", null) : null
description = "Hashiqube on GCP Fabio LB URL"
}
# output "terraform_cloud_api_ip_ranges" {
# description = "Terraform Cloud API IP Ranges"
# value = local.terraform_cloud_ip_ranges.api
# }
# output "terraform_cloud_notifications_ip_ranges" {
# description = "Terraform Cloud Notifications IP Ranges"
# value = local.terraform_cloud_ip_ranges.notifications
# }
# output "terraform_cloud_sentinel_ip_ranges" {
# description = "Terraform Cloud Sentinel Runner IP Ranges"
# value = local.terraform_cloud_ip_ranges.sentinel
# }
# output "terraform_cloud_vcs_ip_ranges" {
# description = "Terraform Cloud VCS Integration IP Ranges"
# value = local.terraform_cloud_ip_ranges.vcs
# }