This commit is contained in:
2023-07-26 12:55:31 +02:00
parent 89c93646d4
commit 4b68b96718
4 changed files with 123 additions and 123 deletions

View File

@@ -23,9 +23,9 @@ locals {
@ 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]))
"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]))
},[for z in var.zones: {
"${z.name}.db" = join("\n", concat([
"${z.name}" = join("\n", concat([
"$TTL 60",
"$ORIGIN ${z.name}.",
local.soa-ns

View File

@@ -6,11 +6,45 @@ metadata:
name: dns
description: null
options:
zones:
default: []
items:
properties:
alias:
default: {}
type: object
hosts:
default: {}
type: object
hosts6:
default: {}
type: object
name:
default: local.domain
type: string
wildcard:
default: ''
type: string
wildcard6:
default: ''
type: string
type: object
type: array
sub-domain:
default: dns
examples:
- dns
type: string
domain:
default: your-company
examples:
- your-company
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
image:
default:
pullPolicy: IfNotPresent
@@ -40,40 +74,6 @@ options:
default: 1.10.1
type: string
type: object
zones:
default: []
items:
properties:
alias:
default: {}
type: object
hosts:
default: {}
type: object
hosts6:
default: {}
type: object
name:
default: local.domain
type: string
wildcard:
default: ''
type: string
wildcard6:
default: ''
type: string
type: object
type: array
sub-domain:
default: dns
examples:
- dns
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
dependencies: []
providers:
kubernetes: true