]> gitweb.fluxo.info Git - puppet-dhcp.git/commitdiff
Lint dhcp::server
authorMickaël Canévet <mickael.canevet@camptocamp.com>
Fri, 7 Dec 2012 08:35:07 +0000 (09:35 +0100)
committerMickaël Canévet <mickael.canevet@camptocamp.com>
Fri, 7 Dec 2012 08:35:07 +0000 (09:35 +0100)
manifests/server.pp

index 7d56854653f1c5d71c8360a5e052329545deea5c..6bdf51f77adb5509d01279e88af5c242e96f9e30 100644 (file)
@@ -7,15 +7,16 @@ Requires:
   module "common": git://github.com/camptocamp/puppet-common.git
 
 facultative argument:
-  *$dhcpd_ddns_update*        : ddns-update-style option (default to none)
-  *$dhcpd_authoritative* : set it if you want that your DHCP server is authoritative (default to no)
-  *$dhcpd_opts*               : any other DHCPD valid options
+  *$dhcpd_ddns_update*   : ddns-update-style option (default to none)
+  *$dhcpd_authoritative* : set it if you want that your DHCP server is
+                            authoritative (default to no)
+  *$dhcpd_opts*          : any other DHCPD valid options
 
 Example:
 node "dhcp.toto.ltd" {
   $dhcpd_opts = ['domain-name "toto.ltd"', "domain-name-servers 192.168.21.1"]
   include dhcp::server
-  
+
   dhcp::subnet {"10.27.20.0":
     ensure     => present,
     broadcast  => "10.27.20.255",
@@ -23,15 +24,16 @@ node "dhcp.toto.ltd" {
   }
 
   dhcp::host {"titi-eth0":
-    ensure => present,
-    mac    => "0e:18:fa:fe:d9:00",
-    subnet => "10.27.20.0",
+    ensure        => present,
+    mac           => "0e:18:fa:fe:d9:00",
+    subnet        => "10.27.20.0",
     fixed_address => "10.27.10.52",
   }
 }
 */
+
 class dhcp::server {
-  case $operatingsystem {
+  case $::operatingsystem {
     Debian: { include dhcp::server::debian }
   }
 }