From 68b0642c21a598b6f5aecfedd38cc1584737fbec Mon Sep 17 00:00:00 2001 From: Cédric Jeanneret Date: Thu, 4 Nov 2010 14:02:31 +0100 Subject: New module: dhcp Install and manage a dhcp server with puppet. Please read manifests/classes/dhcp.pp for more informations about usage. --- manifests/definitions/dhcp-host.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 manifests/definitions/dhcp-host.pp (limited to 'manifests/definitions/dhcp-host.pp') diff --git a/manifests/definitions/dhcp-host.pp b/manifests/definitions/dhcp-host.pp new file mode 100644 index 0000000..747fa7c --- /dev/null +++ b/manifests/definitions/dhcp-host.pp @@ -0,0 +1,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"), + } +} -- cgit v1.2.3