Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 98dfe62

Browse files
committed
NEW: cfnetwork::dnssec option to control systemd-resolved DNSSEC
1 parent 345771e commit 98dfe62

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
All notable changes to this project will be documented in this file. This
44
project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## (next)
7+
- NEW: cfnetwork::dnssec option to control systemd-resolved DNSSEC
8+
69
## 1.3.0 (2019-04-14)
710
- CHANGED: to allow dash in domain names
811
- CHANGED: cfnetwork::ipset to also force fetching hosts

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ anchor:
310310
* `hosts = undef` - arbitrary definition of custom /etc/hosts entries based on `host` type
311311
* `hosts_locality = 'localtion'` - either 'location' or 'pool' for static hosts selection
312312
* `prefer_ipv4 = true` - prefer IPv4 address resolution over IPv6
313+
* `dnnsec = on` - control systemd-resolved DNSSEC option
313314

314315
### `cfnetwork::iface` type
315316

manifests/init.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
$hosts_locality = 'location',
4545
Boolean
4646
$prefer_ipv4 = true,
47+
Enum['on', 'allow-downgrade', 'off']
48+
$dnssec = 'on',
4749
) {
4850
include cfnetwork::sysctl
4951
#---
@@ -105,7 +107,8 @@
105107
file { '/etc/systemd/resolved.conf':
106108
mode => '0644',
107109
content => epp('cfnetwork/resolved.conf.epp', {
108-
dns_servers => $dns_servers,
110+
dns_servers => $dns_servers,
111+
dnssec => $dnssec,
109112
}),
110113
}
111114

templates/resolved.conf.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
DNS=<%= $srv %>
44
<% } } -%>
55
Domains=<%= $::trusted['domain'] %>
6-
DNSSEC=yes
6+
DNSSEC=<%= $dnssec %>
77
Cache=yes
88

99

0 commit comments

Comments
 (0)