This commit is contained in:
2023-07-24 17:40:06 +02:00
parent 8fe267118c
commit 27a6648329
2 changed files with 11 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ locals {
@ IN NS ${var.sub-domain}.${var.domain-name}.
EOF
files = merge({
"Corefile" = join("", 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.db %s", z.name,z.name)],[local.end-core]))
},[for z in var.zones: {
"${z.name}" = join("\n", concat([
"$TTL 60",

View File

@@ -6,6 +6,11 @@ metadata:
name: dns
description: null
options:
domain:
default: your-company
examples:
- your-company
type: string
image:
default:
pullPolicy: IfNotPresent
@@ -35,16 +40,6 @@ options:
default: 1.10.1
type: string
type: object
domain:
default: your-company
examples:
- your-company
type: string
sub-domain:
default: dns
examples:
- dns
type: string
zones:
default: []
items:
@@ -74,6 +69,11 @@ options:
examples:
- your_company.com
type: string
sub-domain:
default: dns
examples:
- dns
type: string
dependencies: []
providers:
kubernetes: true