mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Add spec support scripts for centos
This commit is contained in:
parent
e7ecfa8109
commit
7be5266e20
2 changed files with 22 additions and 0 deletions
8
test/vagrant-spec/scripts/centos-run.virtualbox.sh
Normal file
8
test/vagrant-spec/scripts/centos-run.virtualbox.sh
Normal 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
|
||||
14
test/vagrant-spec/scripts/centos-setup.virtualbox.sh
Normal file
14
test/vagrant-spec/scripts/centos-setup.virtualbox.sh
Normal 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
|
||||
Loading…
Reference in a new issue