diff options
Diffstat (limited to 'manifests/definitions/dhcp-shared-network.pp')
-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], + } +} |