Skip to content

Commit

Permalink
Updates to the vagrant workflow (#50)
Browse files Browse the repository at this point in the history
* Virtual: install netaddr with system pkg

* Virtual: install working version of vagrant

See dotless-de/vagrant-vbguest#292
See https://bugs.launchpad.net/ubuntu/+source/vagrant/+bug/1796168

* Virtual: install libvirt-dev

Otherwise, you get errors compiling some gems while installing vagrant
plugins

* Virtual: become root to use vagrant

* Virtual: actually, don't do sudo+vagrant

* Virtual: install sshpass
  • Loading branch information
lukeyeager authored and dholt committed Feb 11, 2019
1 parent 9349a67 commit 0e40a30
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions virtual/cluster_destroy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
set -ex

vagrant destroy -f
2 changes: 1 addition & 1 deletion virtual/cluster_up.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -x
set -ex

# start vagrant
vagrant up --no-parallel --provider=libvirt
Expand Down
17 changes: 14 additions & 3 deletions virtual/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ set -xe
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
sudo apt update
sudo apt install -y ansible
sudo apt install -y vagrant
sudo pip install netaddr

if [ "$(lsb_release -cs)" = "bionic" ]; then
# dotless-de/vagrant-vbguest#292
pushd "$(mktemp -d)"
wget https://releases.hashicorp.com/vagrant/2.0.3/vagrant_2.0.3_x86_64.deb -O vagrant.deb
sudo dpkg -i vagrant.deb
popd
else
sudo apt install -y vagrant
fi

sudo apt install -y python-netaddr
sudo apt install -y sshpass

# install kvm packages
sudo apt install -y qemu-kvm libvirt-bin bridge-utils libguestfs-tools
sudo apt install -y qemu-kvm libvirt-bin libvirt-dev bridge-utils libguestfs-tools
sudo apt install -y qemu ovmf virt-manager firewalld

# install vagrant plugins
Expand Down

0 comments on commit 0e40a30

Please sign in to comment.