Commit 5a9e5df9 authored by Neeki Patel's avatar Neeki Patel

Allow manifest_file to be a directory

Puppet is removing support for imports and node inherits. This change will support directories as manifests

https://docs.puppetlabs.com/puppet/latest/reference/dirs_manifest.html
https://docs.puppetlabs.com/puppet/latest/reference/lang_import.html
parent 496d1fe9
......@@ -180,9 +180,6 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
if err != nil {
errs = packer.MultiErrorAppend(errs,
fmt.Errorf("manifest_file is invalid: %s", err))
} else if info.IsDir() {
errs = packer.MultiErrorAppend(errs,
fmt.Errorf("manifest_file must point to a file"))
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment