aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/resolver.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-13 14:48:37 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-13 14:48:37 -0300
commitbe898939a839cca4a0134c34232a7216a4f2e39e (patch)
treee14a138acb08f95cce52d9026a139607d39fe48c /manifests/subsystems/resolver.pp
parent66ddcd5f08bf61fea97406883270728ad6a72b6b (diff)
downloadpuppet-nodo-be898939a839cca4a0134c34232a7216a4f2e39e.tar.gz
puppet-nodo-be898939a839cca4a0134c34232a7216a4f2e39e.tar.bz2
Class resolver now also handles resolvconf package config
Diffstat (limited to 'manifests/subsystems/resolver.pp')
-rw-r--r--manifests/subsystems/resolver.pp11
1 files changed, 10 insertions, 1 deletions
diff --git a/manifests/subsystems/resolver.pp b/manifests/subsystems/resolver.pp
index e1e4582..0d8beb8 100644
--- a/manifests/subsystems/resolver.pp
+++ b/manifests/subsystems/resolver.pp
@@ -1,7 +1,16 @@
class resolver {
# DNS resolver
case $resolvconf_nameservers {
- '': { }
+ '': {
+ package { 'resolvconf':
+ ensure => present,
+ }
+
+ file { '/etc/resolv.conf':
+ ensure => '/etc/resolvconf/run/resolv.conf',
+ require => Package['resolvconf'],
+ }
+ }
default: {
$resolvconf_domain = "$domain"
$resolvconf_search = "$fqdn"