112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
# File 'manifests/init.pp', line 112
class resolved (
Optional[String] $dns,
Optional[String] $fallback_dns,
Optional[String] $domains,
Optional[Variant[Boolean, Enum['yes','no','resolve']]] $llmnr,
Optional[Variant[Boolean, Enum['yes','no','resolve']]] $multicast_dns,
Optional[Variant[Boolean, Enum['yes','no','allow-downgrade']]] $dnssec,
Optional[Variant[Boolean, Enum['yes','no','opportunistic']]] $dns_over_tls,
Optional[Variant[Boolean, Enum['yes','no','no-negative']]] $cache,
Optional[Variant[Boolean, Enum['yes','no','udp', 'tcp']]] $dns_stub_listener,
Optional[Variant[Boolean, Enum['yes','no']]] $read_etc_hosts,
) {
file { '/etc/systemd/resolved.conf':
ensure => file,
content => template('resolved/resolved.conf.erb'),
notify => Service['systemd-resolved'],
backup => true,
}
service { 'systemd-resolved':
ensure => running,
enable => true,
subscribe => File['/etc/systemd/resolved.conf'],
}
file { '/etc/resolv.conf':
ensure => link,
target => '/run/systemd/resolve/resolv.conf',
}
}
|