test/vm_setup: install vagrant dependencies
Signed-off-by: Pawel Piatek <pawelx.piatek@intel.com> Change-Id: I8e02f30b96fd8434e5da206eba657ba524a413a8 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3577 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com> Reviewed-by: Michal Berger <michalx.berger@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
2188940e63
commit
8ea52a41d1
@ -97,6 +97,23 @@ packages=(
|
|||||||
xfsprogs
|
xfsprogs
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install_vagrant_dependencies() {
|
||||||
|
local vagrant_packages
|
||||||
|
vagrant_packages=(
|
||||||
|
qemu
|
||||||
|
libvirt-bin
|
||||||
|
ebtables
|
||||||
|
dnsmasq-base
|
||||||
|
libxslt-dev
|
||||||
|
libxml2-dev
|
||||||
|
libvirt-dev
|
||||||
|
zlib1g-dev
|
||||||
|
ruby-dev
|
||||||
|
)
|
||||||
|
|
||||||
|
install "${vagrant_packages[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
if [[ $OSID != ubuntu ]]; then
|
if [[ $OSID != ubuntu ]]; then
|
||||||
echo "Located apt-get package manager, but it was tested for Ubuntu only"
|
echo "Located apt-get package manager, but it was tested for Ubuntu only"
|
||||||
fi
|
fi
|
||||||
|
@ -273,6 +273,10 @@ function install_vagrant() {
|
|||||||
error "Currently only ubuntu is supported"
|
error "Currently only ubuntu is supported"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install vagrant and it's plugins dependencies
|
||||||
|
# function should be defined in pkgdep/$package_manager file
|
||||||
|
install_vagrant_dependencies
|
||||||
|
|
||||||
# Download and install vagrant
|
# Download and install vagrant
|
||||||
if hash vagrant &> /dev/null; then
|
if hash vagrant &> /dev/null; then
|
||||||
echo "Vagrant is already installed"
|
echo "Vagrant is already installed"
|
||||||
|
Loading…
Reference in New Issue
Block a user