From 27a664832965638cfd4011d93c1edccd44997af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Mon, 24 Jul 2023 17:40:06 +0200 Subject: [PATCH] fix --- share/dns/config.tf | 2 +- share/dns/index.yaml | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/share/dns/config.tf b/share/dns/config.tf index cbb56b3..08fb543 100644 --- a/share/dns/config.tf +++ b/share/dns/config.tf @@ -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", diff --git a/share/dns/index.yaml b/share/dns/index.yaml index 0229622..3077df5 100644 --- a/share/dns/index.yaml +++ b/share/dns/index.yaml @@ -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