import libvirt box

`packer` build `provider` is not consistent at this time.

type qemu builder in the current packer config reports provider as `libvirt`
This commit is contained in:
Jeffrey Martin 2020-08-21 13:59:15 -05:00
parent b0eaed0ae8
commit d987936b99
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,9 @@ for provider in $providers; do
echo "NOTE: If you are having issues, try starting over by doing 'vagrant destroy' and then 'vagrant up'."
else
if [ -z $box_import ]; then
if [ $provider = "qemu" ]; then
provider="libvirt"
fi
if vagrant box add $packer_build_path/"$os_full"_"$provider"_"$box_version".box --name rapid7/metasploitable3-$os_short; then
echo "Box successfully added to Vagrant."
else