From 9e179f8276c079b5556c823cb4df98cef01b3bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Wed, 26 Jul 2023 13:47:24 +0200 Subject: [PATCH] fix --- share/dns/config.tf | 4 ++-- share/dns/index.yaml | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/share/dns/config.tf b/share/dns/config.tf index f04e4b1..7a07d35 100644 --- a/share/dns/config.tf +++ b/share/dns/config.tf @@ -34,9 +34,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 %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([ + "${z.name}.db" = join("\n", concat([ "$TTL 60", "$ORIGIN ${z.name}.", local.soa-ns diff --git a/share/dns/index.yaml b/share/dns/index.yaml index f93328a..5b52c23 100644 --- a/share/dns/index.yaml +++ b/share/dns/index.yaml @@ -6,21 +6,11 @@ metadata: name: dns description: null options: - 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 forward: default: 192.168.1.254 examples: @@ -79,6 +69,16 @@ options: default: 1.10.1 type: string type: object + sub-domain: + default: dns + examples: + - dns + type: string + domain-name: + default: your_company.com + examples: + - your_company.com + type: string dependencies: [] providers: kubernetes: true