aboutsummaryrefslogtreecommitdiff
path: root/manifests/server.pp
diff options
context:
space:
mode:
authorMarc Fournier <marc.fournier@camptocamp.com>2011-11-15 13:17:30 +0100
committerMarc Fournier <marc.fournier@camptocamp.com>2011-11-15 13:17:30 +0100
commit5f4a22d6775fc091124c95bbb0b891bf95e6043c (patch)
tree8e72cf49cb70d9f88cd31dff946f5785f0fb8721 /manifests/server.pp
parent69f887dee39d13f52b7b228fa49e54bdd0454c3b (diff)
downloadpuppet-dhcp-5f4a22d6775fc091124c95bbb0b891bf95e6043c.tar.gz
puppet-dhcp-5f4a22d6775fc091124c95bbb0b891bf95e6043c.tar.bz2
file renaming to be compliant with recommended module structure.
Diffstat (limited to 'manifests/server.pp')
-rw-r--r--manifests/server.pp37
1 files changed, 37 insertions, 0 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
new file mode 100644
index 0000000..7d56854
--- /dev/null
+++ b/manifests/server.pp
@@ -0,0 +1,37 @@
+/*
+
+= Class: dhcp::server
+Simple OS wrapper. Include this to install a dhcp server on your host.
+
+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
+
+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",
+ other_opts => ['filename "pxelinux.0";', 'next-server 10.27.10.1;'],
+ }
+
+ dhcp::host {"titi-eth0":
+ 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 {
+ Debian: { include dhcp::server::debian }
+ }
+}