diff options
author | Victor Morales <victor.morales@intel.com> | 2017-12-18 09:56:13 -0800 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2017-12-23 03:22:34 -0500 |
commit | fa9eb9c5c50ca147504cb97226007b82f6909b8a (patch) | |
tree | 5a1b962e79074f796c441e37612d6a9587d47460 /bootstrap/vagrant-onap/tools/setup_libvirt.sh | |
parent | f1ffdbc27f2cd05b487c7857362bf2018a513b21 (diff) |
Add OOM provisioning script
The instructions to provision a ONAP Operations Manager environment
was included into the vagrant-onap tool. This script requires a
specific docker version besides some tasks that wait for certain
services.
Change-Id: I39f0b7947e7c87d8aa44ffa93cdb414d700379bd
Signed-off-by: Victor Morales <victor.morales@intel.com>
Co-Authored-By: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
Issue-ID: INT-370
Diffstat (limited to 'bootstrap/vagrant-onap/tools/setup_libvirt.sh')
-rwxr-xr-x | bootstrap/vagrant-onap/tools/setup_libvirt.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bootstrap/vagrant-onap/tools/setup_libvirt.sh b/bootstrap/vagrant-onap/tools/setup_libvirt.sh new file mode 100755 index 000000000..54003d691 --- /dev/null +++ b/bootstrap/vagrant-onap/tools/setup_libvirt.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +export VAGRANT_DEFAULT_PROVIDER=libvirt + +source /etc/os-release || source /usr/lib/os-release +case ${ID,,} in + *suse) + ;; + ubuntu|debian) + # vagrant-libvirt dependencies + sudo apt-get install -y qemu libvirt-bin ebtables dnsmasq libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev + + # NFS + sudo apt-get install -y nfs-kernel-server + ;; + rhel|centos|fedora) + PKG_MANAGER=$(which dnf || which yum) + sudo $PKG_MANAGER install -y qemu libvirt libvirt-devel ruby-devel gcc qemu-kvm + ;; +esac +vagrant plugin install vagrant-libvirt |