This commit is contained in:
2024-01-26 10:19:34 +01:00
parent e8ad81c3db
commit 94e78fa7e9
187 changed files with 3355 additions and 2857 deletions

View File

@@ -23,13 +23,13 @@ locals {
}
EOF
soa-ns = <<-EOF
@ IN SOA ${var.sub_domain}.${var.domain_name}. ${var.domain_name}. (
@ IN SOA ${var.sub-domain}.${var.domain-name}. ${var.domain-name}. (
${formatdate("YYYYMMDDhh",timestamp())} ; Serial
4H ; Refresh
1H ; Retry
7D ; Expire
4H ) ; Negative Cache TTL
@ IN NS ${var.sub_domain}.${var.domain_name}.
@ 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.db %s", z.name,z.name)],[local.end-core]))

View File

@@ -6,15 +6,25 @@ metadata:
name: dns
description: null
options:
domain_name:
domain:
default: your-company
examples:
- your-company
type: string
sub-domain:
default: dns
examples:
- dns
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
sub_domain:
default: dns
forward:
default: 192.168.1.254
examples:
- dns
- 192.168.1.254
type: string
zones:
default: []
@@ -93,16 +103,6 @@ options:
default: 1.11.1
type: string
type: object
domain:
default: your-company
examples:
- your-company
type: string
forward:
default: 192.168.1.254
examples:
- 192.168.1.254
type: string
dependencies: []
providers:
kubernetes: true