Update puppet.rb

The main manifest may be a single file or a directory of .pp files. 
docs.puppetlabs.com/puppet/latest/reference/dirs_manifest.html#with-puppet-master
https://github.com/mitchellh/vagrant/issues/4039
This commit is contained in:
schauer 2014-07-09 21:37:55 +02:00
parent edb36abcc0
commit 8a45485de4
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ module VagrantPlugins
path: expanded_path.to_s) path: expanded_path.to_s)
else else
expanded_manifest_file = expanded_path.join(manifest_file) expanded_manifest_file = expanded_path.join(manifest_file)
if !expanded_manifest_file.file? if !expanded_manifest_file.file? && !expanded_manifest_file.directory?
errors << I18n.t("vagrant.provisioners.puppet.manifest_missing", errors << I18n.t("vagrant.provisioners.puppet.manifest_missing",
manifest: expanded_manifest_file.to_s) manifest: expanded_manifest_file.to_s)
end end