aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/resolver.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-24 18:47:31 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-24 18:47:31 -0200
commit19d2a0a39eff1a836c309ad9a82dec734b9ddb0e (patch)
tree5004b2b0946368f434ce1c8d9ddeaa9c692bafb1 /manifests/subsystems/resolver.pp
parent2e8b3a92ebb43e72e08203e691e622f4141816a0 (diff)
downloadpuppet-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.pp9
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,
}