From 7be5266e202b044e87ec9293280cd451e7017f09 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Fri, 17 Mar 2017 14:18:14 -0700 Subject: [PATCH] Add spec support scripts for centos --- test/vagrant-spec/scripts/centos-run.virtualbox.sh | 8 ++++++++ .../scripts/centos-setup.virtualbox.sh | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 test/vagrant-spec/scripts/centos-run.virtualbox.sh create mode 100644 test/vagrant-spec/scripts/centos-setup.virtualbox.sh diff --git a/test/vagrant-spec/scripts/centos-run.virtualbox.sh b/test/vagrant-spec/scripts/centos-run.virtualbox.sh new file mode 100644 index 000000000..35f993609 --- /dev/null +++ b/test/vagrant-spec/scripts/centos-run.virtualbox.sh @@ -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 diff --git a/test/vagrant-spec/scripts/centos-setup.virtualbox.sh b/test/vagrant-spec/scripts/centos-setup.virtualbox.sh new file mode 100644 index 000000000..e670bf2a3 --- /dev/null +++ b/test/vagrant-spec/scripts/centos-setup.virtualbox.sh @@ -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