From 5f4a22d6775fc091124c95bbb0b891bf95e6043c Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Tue, 15 Nov 2011 13:17:30 +0100 Subject: file renaming to be compliant with recommended module structure. --- manifests/host.pp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 manifests/host.pp (limited to 'manifests/host.pp') diff --git a/manifests/host.pp b/manifests/host.pp new file mode 100644 index 0000000..160df63 --- /dev/null +++ b/manifests/host.pp @@ -0,0 +1,20 @@ +/* + += Definition: dhcp::host +Create dhcp configuration for a host + +Arguments: + *$mac*: host MAC address (mandatory) + *$subnet*: subnet in which we want to add this host + *$fixed_address*: host fixed address (if not set, takes $name) + +*/ +define dhcp::host($ensure=present,$mac,$subnet,$fixed_address=false, $options=false) { + include dhcp::params + common::concatfilepart {"dhcp.host.$name": + ensure => $ensure, + notify => Service["dhcpd"], + file => "${dhcp::params::config_dir}/hosts.d/${subnet}.conf", + content => template("dhcp/host.conf.erb"), + } +} -- cgit v1.2.3