aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2013-04-11 12:34:23 +0200
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2013-04-11 12:34:23 +0200
commit4cc54cff2d04eedb672c7cc6b92a5edcccac63c9 (patch)
treee57fe01acc4bc319cdcba4b245649687874527e3 /manifests
parent87096a875d4bee517e0c8c807218394a2024bd46 (diff)
downloadpuppet-dhcp-4cc54cff2d04eedb672c7cc6b92a5edcccac63c9.tar.gz
puppet-dhcp-4cc54cff2d04eedb672c7cc6b92a5edcccac63c9.tar.bz2
Add spec tests for the dhcp class
Diffstat (limited to 'manifests')
-rw-r--r--manifests/hosts.pp2
-rw-r--r--manifests/params.pp2
2 files changed, 2 insertions, 2 deletions
diff --git a/manifests/hosts.pp b/manifests/hosts.pp
index b159449..426d661 100644
--- a/manifests/hosts.pp
+++ b/manifests/hosts.pp
@@ -42,7 +42,7 @@ define dhcp::hosts (
$template = 'dhcp/host.conf.erb',
) {
- include dhcp::params
+ include ::dhcp::params
concat::fragment {"dhcp.host.${name}":
target => "${dhcp::params::config_dir}/hosts.d/${subnet}.conf",
diff --git a/manifests/params.pp b/manifests/params.pp
index 925f3f5..0938e4a 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -27,7 +27,7 @@ class dhcp::params {
}
default: {
- fail "${name} is not available for ${::operatingsystem}/${::lsbdistcodename}"
+ fail "Unsupported OS ${::operatingsystem}/${::lsbdistcodename}"
}
}