blob: 2154d37af9994508e600cdcd1e652902382bd2ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
concat::fragment {"shared-${name}":
ensure => $ensure,
target => "${dhcp::params::config_dir}/dhcpd.conf",
content => template("dhcp/shared-network.erb"),
require => Dhcp::Subnet[$subnets],
}
}
|