Skip to content

Instantly share code, notes, and snippets.

@josiahhaswell
Created February 22, 2021 22:02
Show Gist options
  • Save josiahhaswell/4cb10b8e92d8d44b07b04c4de95af095 to your computer and use it in GitHub Desktop.
Save josiahhaswell/4cb10b8e92d8d44b07b04c4de95af095 to your computer and use it in GitHub Desktop.
main.tf DNS module definition
/**
Create DNS entries for virtual machines
*/
module "dns_configuration" {
for_each = var.cluster_nodes
source = "./dns"
dns_server = var.dns_server
hosts = each.value
api_dns = var.api_server
api_domain = var.domain
api_ip = var.load_balancer
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment