aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/resolver.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystems/resolver.pp')
-rw-r--r--manifests/subsystems/resolver.pp7
1 files changed, 5 insertions, 2 deletions
diff --git a/manifests/subsystems/resolver.pp b/manifests/subsystems/resolver.pp
index ac80cf6..a6604f5 100644
--- a/manifests/subsystems/resolver.pp
+++ b/manifests/subsystems/resolver.pp
@@ -1,6 +1,8 @@
class resolver(
- $manage = hiera('nodo::resolver::manage', false),
+ $manage = hiera('nodo::resolver::manage', false),
$nameservers = hiera('nodo::resolver::nameservers', '')
+ $domain = hiera('nodo::resolver::domain', $::domain),
+ $search = hiera('nodo::resolver::search', $::fqdn)
) {
# DNS resolver
case $manage {
@@ -16,7 +18,8 @@ class resolver(
}
default: {
class { 'resolvconf':
- search => $::fqdn,
+ domain => $domain,
+ search => $search,
nameservers => $nameservers,
}
}