-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutput.tf
More file actions
61 lines (51 loc) · 2.52 KB
/
Copy pathoutput.tf
File metadata and controls
61 lines (51 loc) · 2.52 KB
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
output "vpc_name" {
description = "The ID of the VPC"
value = local.vpc_name
}
output "subnet_name" {
description = "The ID of the VPC subnet"
value = local.subnet_name
}
output "ssh_private_key_path" {
description = "SSH private key path"
value = local.ssh_private_key_path
}
output "standalone_red5pro_server_ip" {
description = "Standalone Red5 Pro Server IP"
value = local.standalone ? tolist(linode_instance.standalone_instance[0].ipv4)[0] : ""
}
output "standalone_red5pro_server_http_url" {
description = "Standalone Red5 Pro Server HTTP URL"
value = local.standalone ? "http://${tolist(linode_instance.standalone_instance[0].ipv4)[0]}:5080" : ""
}
output "standalone_red5pro_server_https_url" {
description = "Standalone Red5 Pro Server HTTPS URL"
value = local.standalone && var.https_ssl_certificate != "none" ? "https://${var.https_ssl_certificate_domain_name}:443" : ""
}
output "manual_dns_record" {
description = "DNS hint for TLS: cluster/autoscale uses stream_manager_public_hostname; standalone uses https_ssl_certificate_domain_name"
value = var.https_ssl_certificate != "none" ? (
local.cluster_or_autoscale ? "Please create DNS A record for Stream Manager 2.0: '${var.stream_manager_public_hostname}' -> '${local.stream_manager_ip}'"
: "Please create DNS A record for Standalone Red5 Pro: '${var.https_ssl_certificate_domain_name}' -> '${tolist(linode_instance.standalone_instance[0].ipv4)[0]}'"
) : ""
}
output "stream_manager_ip" {
description = "Stream Manager 2.0 Public IP or Load Balancer Public IP"
value = local.cluster_or_autoscale ? local.stream_manager_ip : ""
}
output "stream_manager_url_http" {
description = "Stream Manager HTTP URL"
value = local.cluster_or_autoscale ? "http://${local.stream_manager_ip}:80" : ""
}
output "stream_manager_url_https" {
description = "Stream Manager HTTPS URL (hostname from stream_manager_public_hostname, not https_ssl_certificate_domain_name — supports wildcard certs)"
value = local.cluster_or_autoscale ? var.https_ssl_certificate != "none" && var.stream_manager_public_hostname != "" ? "https://${var.stream_manager_public_hostname}:443" : "" : ""
}
output "stream_manager_node_image" {
description = "Stream Manager 2.0 Red5 Pro Node Image (OCI Custom Image)"
value = try(linode_image.red5pro_node_image[0].label, "")
}
output "r5as_conference_secret" {
description = "Auto-generated R5AS Conference secret (hex)"
value = try(random_id.r5as_conference_secret[0].hex, "")
}