Merge pull request #21 from mrwacky42/basedir_warning

Fail with helpful advice if $::concat_basedir is not yet set
This commit is contained in:
R.I.Pienaar 2012-05-23 14:42:14 -07:00
commit 1c0e725ba7

View file

@ -18,7 +18,13 @@ class concat::setup {
root => 0,
default => $id
}
$concatdir = $::concat_basedir
if $::concat_basedir {
$concatdir = $::concat_basedir
} else {
fail ("\$concat_basedir not defined. Try running again with pluginsync enabled")
}
$majorversion = regsubst($::puppetversion, '^[0-9]+[.]([0-9]+)[.][0-9]+$', '\1')
file{"${concatdir}/bin/concatfragments.sh":