fix
This commit is contained in:
@@ -30,11 +30,11 @@ locals {
|
||||
"$ORIGIN ${z.name}.",
|
||||
local.soa-ns
|
||||
],
|
||||
[for k,v in z.hosts: format("%s IN A %s", k, v)],
|
||||
[for k,v in z.hosts6: format("%s IN AAAA %s", k, v)],
|
||||
[for k,v in z.alias: format("%s IN CNAME %s", k, v)],
|
||||
z.wildcard!=""?[format("*.%s. IN A %s", z.name, z.wildcard)]:[],
|
||||
z.wildcard6!=""?[format("*.%s. IN AAAA %s", z.namz, z.wildcard6)]:[],
|
||||
[for k,v in z.["hosts"]: format("%s IN A %s", k, v)],
|
||||
[for k,v in z.["hosts6"]: format("%s IN AAAA %s", k, v)],
|
||||
[for k,v in z.["alias"]: format("%s IN CNAME %s", k, v)],
|
||||
z.["wildcard"]!=""?[format("*.%s. IN A %s", z.name, z.wildcard)]:[],
|
||||
z.["wildcard6"]!=""?[format("*.%s. IN AAAA %s", z.namz, z.wildcard6)]:[],
|
||||
))
|
||||
}]...)
|
||||
}
|
||||
|
||||
@@ -6,6 +6,40 @@ metadata:
|
||||
name: dns
|
||||
description: null
|
||||
options:
|
||||
sub-domain:
|
||||
default: dns
|
||||
examples:
|
||||
- dns
|
||||
type: string
|
||||
zones:
|
||||
default: []
|
||||
items:
|
||||
properties:
|
||||
alias:
|
||||
default: {}
|
||||
type: object
|
||||
hosts:
|
||||
default: {}
|
||||
type: object
|
||||
hosts6:
|
||||
default: {}
|
||||
type: object
|
||||
name:
|
||||
default: local.domain
|
||||
type: string
|
||||
wildcard:
|
||||
default: ''
|
||||
type: string
|
||||
wildcard6:
|
||||
default: ''
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
domain-name:
|
||||
default: your_company.com
|
||||
examples:
|
||||
- your_company.com
|
||||
type: string
|
||||
domain:
|
||||
default: your-company
|
||||
examples:
|
||||
@@ -40,40 +74,6 @@ options:
|
||||
default: 1.10.1
|
||||
type: string
|
||||
type: object
|
||||
zones:
|
||||
default: []
|
||||
items:
|
||||
properties:
|
||||
alias:
|
||||
default: {}
|
||||
type: object
|
||||
hosts:
|
||||
default: {}
|
||||
type: object
|
||||
hosts6:
|
||||
default: {}
|
||||
type: object
|
||||
name:
|
||||
default: local.domain
|
||||
type: string
|
||||
wildcard:
|
||||
default: ''
|
||||
type: string
|
||||
wildcard6:
|
||||
default: ''
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
domain-name:
|
||||
default: your_company.com
|
||||
examples:
|
||||
- your_company.com
|
||||
type: string
|
||||
sub-domain:
|
||||
default: dns
|
||||
examples:
|
||||
- dns
|
||||
type: string
|
||||
dependencies: []
|
||||
providers:
|
||||
kubernetes: true
|
||||
|
||||
Reference in New Issue
Block a user