aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-13 13:37:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-13 13:37:11 -0300
commitb4221a547d5b7739bd9c76a1c6f75a4536490e2d (patch)
tree7a57137935325f8920af4586ebf7784b80ad7a70 /manifests/subsystems
parent066aed3b86377004786972b6dccfbc631011a6f2 (diff)
downloadpuppet-nodo-b4221a547d5b7739bd9c76a1c6f75a4536490e2d.tar.gz
puppet-nodo-b4221a547d5b7739bd9c76a1c6f75a4536490e2d.tar.bz2
Adding resolver class
Diffstat (limited to 'manifests/subsystems')
-rw-r--r--manifests/subsystems/resolver.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/subsystems/resolver.pp b/manifests/subsystems/resolver.pp
new file mode 100644
index 0000000..e1e4582
--- /dev/null
+++ b/manifests/subsystems/resolver.pp
@@ -0,0 +1,11 @@
+class resolver {
+ # DNS resolver
+ case $resolvconf_nameservers {
+ '': { }
+ default: {
+ $resolvconf_domain = "$domain"
+ $resolvconf_search = "$fqdn"
+ include resolvconf
+ }
+ }
+}