Fail with helpful advice if $::concat_basedir is not yet set
Building on the new docs in https://github.com/ripienaar/puppet-concat/pull/20
This commit is contained in:
parent
52dbf4a61a
commit
21d0d2abf2
1 changed files with 7 additions and 1 deletions
|
@ -18,7 +18,13 @@ class concat::setup {
|
||||||
root => 0,
|
root => 0,
|
||||||
default => $id
|
default => $id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $::concat_basedir {
|
||||||
$concatdir = $::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')
|
$majorversion = regsubst($::puppetversion, '^[0-9]+[.]([0-9]+)[.][0-9]+$', '\1')
|
||||||
|
|
||||||
file{"${concatdir}/bin/concatfragments.sh":
|
file{"${concatdir}/bin/concatfragments.sh":
|
||||||
|
|
Loading…
Reference in a new issue