Vagrant包不包含带--include的文件

时间:2014-11-09 00:28:19

标签: vagrant vagrantfile

我正在使用vagrant package --base mybox --output mybox.box --vagrantfile ./Vagrantfile打包一个Vagrant框。

这很好用,我把盒子上传到Vagrant Cloud。

然后我正在运行vagrant login,然后是vagrant init myrepo/mybox,这会导致:

~/.vagrant.d/boxes/[removed]/mybox/0.0.2/virtualbox/include/_Vagrantfile:5: warning: already initialized constant VAGRANTFILE_API_VERSION

Vagrantfile:5: warning: previous definition of VAGRANTFILE_API_VERSION was here. There are errors in the configuration of this machine. Please fix the following errors and try again:

shell provisioner:
* `path` for shell provisioner does not exist on the host system:   
[pwd]/test/provision/a_provision_file.sh

〜和pwd分别是home和我配置的空目录。应该包含a_provision_file.sh,因为我已将--include=provision/传递给vagrant package。我很困惑为什么这个文件没有出现在上传到Vagrant Cloud的框中。

谢谢。

0 个答案:

没有答案