Land #353, add detection for vmware provider

This commit is contained in:
Jeffrey Martin 2018-12-27 17:41:34 -06:00
commit 1c1f727d92
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,7 @@ min_vbox_ver="5.1.10"
min_vagrant_ver="1.9.0"
min_packer_ver="0.10.0"
min_vagrantreload_ver="0.0.1"
min_vagrantvmware_ver="0.0.1"
min_vagrantlibvirt_ver="0.0.1"
packer_bin="packer"
packer_build_path="packer/builds"
@ -118,6 +119,12 @@ if [ $(uname) = "Linux" ]; then
fi
fi
if compare_versions $(vagrant plugin list | grep 'vagrant-vmware' | cut -d' ' -f2 | tr -d '(' | tr -d ')' | tr -d ',') $min_vagrantvmware_ver false; then
echo 'Compatible version of vagrant-vmware plugin was found.'
echo 'VMware image will be built'
providers="vmware $providers"
fi
if compare_versions $(vagrant plugin list | grep 'vagrant-reload' | cut -d' ' -f2 | tr -d '(' | tr -d ')') $min_vagrantreload_ver false; then
echo 'Compatible version of vagrant-reload plugin was found.'
else