rpm-system-prerequisites.sh 562 B

12345678910111213
  1. #!/usr/bin/env bash
  2. set -e
  3. function install_deps() {
  4. vagrant_latest_version=$(curl --silent https://releases.hashicorp.com/vagrant/ | grep -Eo 'vagrant_[0-9].[0-9].[0-9]' | head -1)
  5. vagrant_version_number=${vagrant_latest_version##*_}
  6. sudo yum install -y qemu libvirt libvirt-devel ruby-devel gcc qemu-kvm docker kubernetes-client go git perl-Digest-SHA
  7. sudo rpm -i https://releases.hashicorp.com/vagrant/"$vagrant_version_number"/"$vagrant_latest_version"_x86_64.rpm
  8. vagrant plugin install vagrant-libvirt
  9. }
  10. install_deps
  11. sudo systemctl start docker