Add spec support scripts for centos

This commit is contained in:
Chris Roberts 2017-03-17 14:18:14 -07:00
parent e7ecfa8109
commit 7be5266e20
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -x
export VAGRANT_SPEC_BOX="${VAGRANT_SPEC_BOX}"
vagrant vagrant-spec ${VAGRANT_SPEC_ARGS} /vagrant/test/vagrant-spec/configs/vagrant-spec.config.virtualbox.rb
result=$?
exit $result

View File

@ -0,0 +1,14 @@
#!/bin/bash
set -xe
curl -Lo /etc/yum.repos.d/virtualbox.repo http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
yum groupinstall -y "Development Tools"
yum install -y kernel-devel
yum install -y VirtualBox-${VAGRANT_CENTOS_VIRTUALBOX_VERSION:-5.1}
pushd /vagrant
rpm -ivh ./pkg/dist/vagrant_*_x86_64.rpm
vagrant plugin install ./vagrant-spec.gem
popd