diff options
author | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2011-06-22 10:52:27 +0200 |
---|---|---|
committer | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2011-06-22 10:52:27 +0200 |
commit | 65fe9001efdbcc2ab28816bd0ab1298dea610faa (patch) | |
tree | 8db4cf0b773d25a1381c82dd18d9003137201ec7 /manifests | |
parent | 1c0c318f5a5c8412d91dc9668879b8cf79f37261 (diff) | |
download | puppet-dhcp-65fe9001efdbcc2ab28816bd0ab1298dea610faa.tar.gz puppet-dhcp-65fe9001efdbcc2ab28816bd0ab1298dea610faa.tar.bz2 |
dhcp - new definition and related template: shared-network
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/definitions/dhcp-shared-network.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/definitions/dhcp-shared-network.pp b/manifests/definitions/dhcp-shared-network.pp new file mode 100644 index 0000000..9e1e779 --- /dev/null +++ b/manifests/definitions/dhcp-shared-network.pp @@ -0,0 +1,22 @@ +/* + +== Definition: dhcp::shared-network +Creates a shared-network + +Arguments: + *$subnets* : subnet list to be included in the shared-network + +Warnings: +- subnets must exists +- subnets must have $is_shared set to true (default is false) + +*/ +define dhcp::shared-network($ensure=present, $subnets=[]) { + include dhcp::params + common::concatfilepart {"shared-${name}": + ensure => $ensure, + file => "${dhcp::params::config_dir}/dhcpd.conf", + content => template("dhcp/shared-network.erb"), + require => Dhcp::Subnet[$subnets], + } +} |