]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Changing behavior of dhclient supersede_domain param
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 1 Apr 2013 00:32:25 +0000 (21:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 1 Apr 2013 00:32:25 +0000 (21:32 -0300)
manifests/subsystems/dhclient.pp
templates/dhcp/dhclient.conf.erb

index b901d2b1bf1e9cb6f6294ef0f4c2b9b13fc4b4eb..13e636e15a9ffbc23d81b66d47e8d797ff248c8b 100644 (file)
@@ -1,6 +1,6 @@
 class dhclient(
   $ensure           = hiera('nodo::dhclient::manage',           'present'),
-  $supersede_domain = hiera('nodo::dhclient::supersede_domain', '')
+  $supersede_domain = hiera('nodo::dhclient::supersede_domain', $::domain)
 ) {
   package { 'isc-dhcp-client':
     ensure => $ensure,
index 134bf9aef3613d8ff553460505f8bdac4d824ad7..52b704c84acf513eeb61ac89e7ba1914a71d0f60 100644 (file)
@@ -20,8 +20,8 @@ option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
 
 <%- if supersede_domain != '' then -%>
 # Force a domain name, otherwise facter and other configurations might break.
-supersede domain-name "<%= domain %>";
-supersede domain-search "<%= domain %>";
+supersede domain-name "<%= supersede_domain %>";
+supersede domain-search "<%= supersede_domain %>";
 <%- end -%>
 
 request subnet-mask, broadcast-address, time-offset, routers,