This commit is contained in:
2024-01-26 14:31:19 +01:00
parent 637f441a14
commit fb8c86b525
2 changed files with 17 additions and 17 deletions

View File

@@ -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)]:[],
))

View File

@@ -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: