-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.tf
114 lines (92 loc) · 3.17 KB
/
output.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
################################################################################
# OUTPUTS
################################################################################
output "node_origin_image" {
description = "Image name of the Red5 Pro Node Origin image"
value = try(digitalocean_droplet_snapshot.origin-snapshot[0].name, null)
}
output "node_edge_image" {
description = "Image name of the Red5 Pro Node Edge image"
value = try(digitalocean_droplet_snapshot.edge-snapshot[0].name, null)
}
output "node_transcoder_image" {
description = "Image name of the Red5 Pro Node Transcoder image"
value = try(digitalocean_droplet_snapshot.transcoder-snapshot[0].name, null)
}
output "node_relay_image" {
description = "Image name of the Red5 Pro Node Relay image"
value = try(digitalocean_droplet_snapshot.relay-snapshot[0].name, null)
}
output "digital_ocean_project" {
description = "Digital Ocean project where resources will be created"
value = var.project_name
}
output "ssh_key_name" {
description = "SSH key name"
value = local.ssh_key_name
}
output "vpc_name" {
description = "VPC Name"
value = local.vpc_name
}
output "ssh_private_key_path" {
description = "SSH private key path"
value = local.ssh_private_key_path
}
output "database_host" {
description = "MySQL database host"
value = local.mysql_host
}
output "database_user" {
description = "Database User"
value = local.mysql_user
}
output "database_port" {
description = "Database Port"
value = local.mysql_port
}
output "database_password" {
sensitive = true
description = "Database Password"
value = local.mysql_password
}
output "stream_manager_ip" {
description = "Stream Manager IP"
value = local.stream_manager_ip
}
output "stream_manager_http_url" {
description = "Stream Manager HTTP URL"
value = local.cluster || local.autoscaling ? "http://${local.stream_manager_ip}:5080" : null
}
output "stream_manager_https_url" {
description = "Stream Manager HTTPS URL"
value = local.cluster || local.autoscaling ? var.https_letsencrypt_enable ? "https://${var.https_letsencrypt_certificate_domain_name}:443" : null : null
}
output "single_red5pro_server_ip" {
description = "Signle server red5pro ip"
value = local.single_server_ip
}
output "single_red5pro_server_http_url" {
description = "Single Red5 Pro Server HTTP URL"
value = local.single ? "http://${local.single_server_ip}:5080" : null
}
output "single_red5pro_server_https_url" {
description = "Single Red5 Pro Server HTTPS URL"
value = local.single && var.https_letsencrypt_enable ? "https://${var.https_letsencrypt_certificate_domain_name}:443" : null
}
output "load_balancer_ip" {
description = "Load Balancer IP address"
value = local.lb_ip
}
output "load_balancer_https_url" {
description = "Load Balancer HTTPS URL"
value = local.autoscaling && var.lb_ssl_create ? "https://${local.lb_ip}:443" : null
}
output "load_balancer_http_url" {
description = "Load Balancer HTTP URL"
value = local.autoscaling ? "http://${local.lb_ip}:5080" : null
}
output "terraform_service_ip" {
description = "Terraform Service Host"
value = local.terraform_service_ip
}