diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-24 18:47:31 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-24 18:47:31 -0200 |
commit | 19d2a0a39eff1a836c309ad9a82dec734b9ddb0e (patch) | |
tree | 5004b2b0946368f434ce1c8d9ddeaa9c692bafb1 /manifests/subsystems/resolver.pp | |
parent | 2e8b3a92ebb43e72e08203e691e622f4141816a0 (diff) | |
download | puppet-nodo-19d2a0a39eff1a836c309ad9a82dec734b9ddb0e.tar.gz puppet-nodo-19d2a0a39eff1a836c309ad9a82dec734b9ddb0e.tar.bz2 |
Adding manage paramater to resolver class
Diffstat (limited to 'manifests/subsystems/resolver.pp')
-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, } |