blob: 747fa7c7740f381be6c7803f02525b46e20ec42f (
plain)
1
2
3
4
5
6
7
8
9
10
|
define dhcp::host($ensure=present,$mac,$subnet,$fixed_address=false) {
include dhcp::variables
common::concatfilepart {$name:
ensure => $ensure,
notify => Service["dhcpd"],
file => "${dhcp::variables::config_dir}/hosts.d/${subnet}.conf",
require => Dhcp::Subnet[$subnet],
content => template("dhcp/host.conf.erb"),
}
}
|