aboutsummaryrefslogtreecommitdiff
path: root/manifests/server.pp
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2013-04-11 14:25:15 +0200
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2013-04-11 14:25:15 +0200
commit65bea20e0d8e61de7519bb1ab0677597500aaac7 (patch)
tree89a91f68d8118bc56dbf7da3afe652de3a565dfd /manifests/server.pp
parenta3158aaca4070a4de89b49d687854d72df8741fe (diff)
downloadpuppet-dhcp-65bea20e0d8e61de7519bb1ab0677597500aaac7.tar.gz
puppet-dhcp-65bea20e0d8e61de7519bb1ab0677597500aaac7.tar.bz2
Get rid of unscoped variables in dhcp::server, fix template
Diffstat (limited to 'manifests/server.pp')
-rw-r--r--manifests/server.pp20
1 files changed, 13 insertions, 7 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index ceffa14..d83c26f 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -5,15 +5,17 @@
# 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
+# *$ddns_update* : ddns-update-style option (default to none)
+# *$authoritative* : set it if you want that your DHCP server is
+# authoritative (default to no)
+# *$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
+# class { 'dhcp::server':
+# opts => ['domain-name "toto.ltd"',
+# 'domain-name-servers 192.168.21.1'],
+# }
#
# dhcp::subnet {"10.27.20.0":
# ensure => present,
@@ -29,7 +31,11 @@
# }
# }
#
-class dhcp::server {
+class dhcp::server (
+ $ddns_update = 'none',
+ $authoritative = false,
+ $opts = [],
+) {
class { '::dhcp::server::packages': } ->
class { '::dhcp::server::config': } ~>
class { '::dhcp::server::service': }