fix
This commit is contained in:
@@ -23,13 +23,13 @@ locals {
|
||||
}
|
||||
EOF
|
||||
soa-ns = <<-EOF
|
||||
@ IN SOA ${var.sub-domain}.${var.domain-name}. ${var.domain-name}. (
|
||||
@ IN SOA ${var.sub_domain}.${var.domain_name}. ${var.domain_name}. (
|
||||
${formatdate("YYYYMMDDhh",timestamp())} ; Serial
|
||||
4H ; Refresh
|
||||
1H ; Retry
|
||||
7D ; Expire
|
||||
4H ) ; Negative Cache TTL
|
||||
@ IN NS ${var.sub-domain}.${var.domain-name}.
|
||||
@ IN NS ${var.sub_domain}.${var.domain_name}.
|
||||
EOF
|
||||
files = merge({
|
||||
"Corefile" = join("\n", concat([local.begin-core],[for z in var.zones: format("file /etc/coredns/%s.db %s", z.name,z.name)],[local.end-core]))
|
||||
|
||||
@@ -6,12 +6,12 @@ metadata:
|
||||
name: dns
|
||||
description: null
|
||||
options:
|
||||
domain-name:
|
||||
domain_name:
|
||||
default: your_company.com
|
||||
examples:
|
||||
- your_company.com
|
||||
type: string
|
||||
sub-domain:
|
||||
sub_domain:
|
||||
default: dns
|
||||
examples:
|
||||
- dns
|
||||
|
||||
Reference in New Issue
Block a user