add condition for broadcast server
This commit is contained in:
parent
95360ad6c9
commit
622ddc656f
1 changed files with 2 additions and 1 deletions
3
dns.tf
3
dns.tf
|
|
@ -21,9 +21,10 @@ resource "digitalocean_record" "jam" {
|
||||||
|
|
||||||
|
|
||||||
resource "digitalocean_record" "icecast" {
|
resource "digitalocean_record" "icecast" {
|
||||||
|
count = var.broadcast_enabled ? 1 : 0
|
||||||
domain = "vereto.net"
|
domain = "vereto.net"
|
||||||
type = "A"
|
type = "A"
|
||||||
name = "icecast"
|
name = "icecast"
|
||||||
ttl = 30
|
ttl = 30
|
||||||
value = "${aws_instance.broadcast.*.public_ip}"
|
value = "${aws_instance.broadcast.public_ip}"
|
||||||
}
|
}
|
||||||
Loading…
Add table
Reference in a new issue