Skip to content

Commit

Permalink
Add dns_entries output
Browse files Browse the repository at this point in the history
Signed-off-by: Yussuf Shaikh <[email protected]>
  • Loading branch information
yussufsh committed Dec 15, 2020
1 parent 6612bb1 commit 7895489
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ output "worker_ips" {
value = module.nodes.worker_ips
}

output "dns_entries" {
value = var.cluster_domain == "nip.io" || var.cluster_domain == "xip.io" || var.cluster_domain == "sslip.io" ? "" : <<-EOF
api.${local.cluster_id}.${var.cluster_domain}. IN A ${module.install.bastion_external_vip == "" ? module.prepare.bastion_public_ip[0] : module.install.bastion_external_vip}
*.apps.${local.cluster_id}.${var.cluster_domain}. IN A ${module.install.bastion_external_vip == "" ? module.prepare.bastion_public_ip[0] : module.install.bastion_external_vip}
EOF
}

output "etc_hosts_entries" {
value = var.cluster_domain == "nip.io" || var.cluster_domain == "xip.io" || var.cluster_domain == "sslip.io" ? "" : <<-EOF
Expand Down

0 comments on commit 7895489

Please sign in to comment.