diff options
-rw-r--r-- | manifests/subsystems/resolver.pp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/manifests/subsystems/resolver.pp b/manifests/subsystems/resolver.pp index 2ad0cd4..ac80cf6 100644 --- a/manifests/subsystems/resolver.pp +++ b/manifests/subsystems/resolver.pp @@ -1,7 +1,10 @@ -class resolver($nameservers = hiera('nodo::resolver::nameservers', '')) { +class resolver( + $manage = hiera('nodo::resolver::manage', false), + $nameservers = hiera('nodo::resolver::nameservers', '') +) { # DNS resolver - case $nameservers { - '': { + case $manage { + true: { package { 'resolvconf': ensure => present, } |