From fb8c86b5255727155bd8e19bedb80e6230ce4d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Fri, 26 Jan 2024 14:31:19 +0100 Subject: [PATCH] fix --- share/dns/config.tf | 8 ++++---- share/dns/index.yaml | 26 +++++++++++++------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/share/dns/config.tf b/share/dns/config.tf index c56f0df..0b7d158 100644 --- a/share/dns/config.tf +++ b/share/dns/config.tf @@ -42,10 +42,10 @@ locals { z.domain!=null&&z.domain!=""?[format("%s. IN A %s", z.name, z.domain)]:[], z.domain6!=null&&z.domain6!=""?[format("%s. IN AAAA %s", z.name, z.domain6)]:[], z.txt==null?[]:[for k,v in z.txt: format("%s IN TXT %s", k, v)], - z.hosts==null?[]:[for k,v in z.hosts,[]: format("%s IN A %s", k, v)], - z.hosts6==null?[]:[for k,v in z.hosts6,[]: format("%s IN AAAA %s", k, v)], - z.alias==null?[]:[for k,v in z.alias,[]: format("%s IN CNAME %s", k, v)], - z.mx==null?[]:[for mx in z.mx,[]: format("%s IN MX %d %s", mx.name, mx.priority, mx.value)], + z.hosts==null?[]:[for k,v in z.hosts: format("%s IN A %s", k, v)], + z.hosts6==null?[]:[for k,v in z.hosts6: format("%s IN AAAA %s", k, v)], + z.alias==null?[]:[for k,v in z.alias: format("%s IN CNAME %s", k, v)], + z.mx==null?[]:[for mx in z.mx: format("%s IN MX %d %s", mx.name, mx.priority, mx.value)], z.wildcard!=null&&z.wildcard!=""?[format("*.%s. IN A %s", z.name, z.wildcard)]:[], z.wildcard6!=null&&z.wildcard6!=""?[format("*.%s. IN AAAA %s", z.name, z.wildcard6)]:[], )) diff --git a/share/dns/index.yaml b/share/dns/index.yaml index 4072ef7..46ca30b 100644 --- a/share/dns/index.yaml +++ b/share/dns/index.yaml @@ -6,6 +6,16 @@ metadata: name: dns description: null options: + domain: + default: your-company + examples: + - your-company + type: string + sub_domain: + default: dns + examples: + - dns + type: string zones: default: [] items: @@ -54,16 +64,6 @@ options: 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 image: default: pullPolicy: IfNotPresent @@ -98,10 +98,10 @@ options: examples: - 192.168.1.254 type: string - domain: - default: your-company + domain_name: + default: your_company.com examples: - - your-company + - your_company.com type: string dependencies: [] providers: