diff options
| author | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2013-04-14 23:50:03 -0700 | 
|---|---|---|
| committer | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2013-04-14 23:50:03 -0700 | 
| commit | 93895f1f039956ec9d02df511aaeaed885ae34bf (patch) | |
| tree | 704909c98dc11bb9206b2c67f3f8557418507a21 /manifests/init.pp | |
| parent | 87162a8cc3e47996160f85e1807f75b9ad741bc8 (diff) | |
| parent | c0f46562b70777b9a4a39429d94c49e869150c64 (diff) | |
| download | puppet-dhcp-93895f1f039956ec9d02df511aaeaed885ae34bf.tar.gz puppet-dhcp-93895f1f039956ec9d02df511aaeaed885ae34bf.tar.bz2  | |
Merge pull request #5 from raphink/dev/cleanup
Cleanup, refactor…
Diffstat (limited to 'manifests/init.pp')
| -rw-r--r-- | manifests/init.pp | 36 | 
1 files changed, 36 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp new file mode 100644 index 0000000..9af496f --- /dev/null +++ b/manifests/init.pp @@ -0,0 +1,36 @@ +# Class: dhcp +# +# This class provides a simple way to install a DHCP server +# It will install and configure the necessary packages. +# +# Parameters: +#   ['server']               - Whether to install the DHCP server +#                              (default: true) +#   ['server_ddns_update']   - Set ddns_update on dhcp::server +#   ['server_authoritative'] - Set authoritative on dhcp::server +#   ['server_opts']          - Set opts for dhcp::server +# +# Actions: +#   - Deploys a DHCP server +# +# Sample usage: +#   include ::dhcp +# +# Requires: +#   - puppetlabs/stdlib +#   - ripienaar/concat +# +class dhcp ( +  $server = true, +  $server_ddns_update = undef, +  $server_authoritative = undef, +  $server_opts = undef, +) { +  if $server { +    class { '::dhcp::server': +      ddns_update   => $server_ddns_update, +      authoritative => $server_authoritative, +      opts          => $server_opts, +    } +  } +}  | 
