fix
This commit is contained in:
@@ -34,9 +34,9 @@ locals {
|
|||||||
@ IN NS ${var.sub-domain}.${var.domain-name}.
|
@ IN NS ${var.sub-domain}.${var.domain-name}.
|
||||||
EOF
|
EOF
|
||||||
files = merge({
|
files = merge({
|
||||||
"Corefile" = join("\n", concat([local.begin-core],[for z in var.zones: format("file /etc/coredns/%s %s", z.name,z.name)],[local.end-core]))
|
"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]))
|
||||||
},[for z in var.zones: {
|
},[for z in var.zones: {
|
||||||
"${z.name}" = join("\n", concat([
|
"${z.name}.db" = join("\n", concat([
|
||||||
"$TTL 60",
|
"$TTL 60",
|
||||||
"$ORIGIN ${z.name}.",
|
"$ORIGIN ${z.name}.",
|
||||||
local.soa-ns
|
local.soa-ns
|
||||||
|
|||||||
@@ -6,21 +6,11 @@ metadata:
|
|||||||
name: dns
|
name: dns
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
sub-domain:
|
|
||||||
default: dns
|
|
||||||
examples:
|
|
||||||
- dns
|
|
||||||
type: string
|
|
||||||
domain:
|
domain:
|
||||||
default: your-company
|
default: your-company
|
||||||
examples:
|
examples:
|
||||||
- your-company
|
- your-company
|
||||||
type: string
|
type: string
|
||||||
domain-name:
|
|
||||||
default: your_company.com
|
|
||||||
examples:
|
|
||||||
- your_company.com
|
|
||||||
type: string
|
|
||||||
forward:
|
forward:
|
||||||
default: 192.168.1.254
|
default: 192.168.1.254
|
||||||
examples:
|
examples:
|
||||||
@@ -79,6 +69,16 @@ options:
|
|||||||
default: 1.10.1
|
default: 1.10.1
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
sub-domain:
|
||||||
|
default: dns
|
||||||
|
examples:
|
||||||
|
- dns
|
||||||
|
type: string
|
||||||
|
domain-name:
|
||||||
|
default: your_company.com
|
||||||
|
examples:
|
||||||
|
- your_company.com
|
||||||
|
type: string
|
||||||
dependencies: []
|
dependencies: []
|
||||||
providers:
|
providers:
|
||||||
kubernetes: true
|
kubernetes: true
|
||||||
|
|||||||
Reference in New Issue
Block a user