2022-07-19 14:48:02 +01:00
|
|
|
* Upstream Vagrant Install<br />
|
|
|
|
|
Download and execute the vagrant-libvirt-qa install script (installs latest vagrant by default):
|
|
|
|
|
```shell
|
2022-09-22 16:51:44 +01:00
|
|
|
curl -O https://raw.githubusercontent.com/vagrant-libvirt/vagrant-libvirt-qa/main/scripts/install.bash
|
2022-07-19 14:48:02 +01:00
|
|
|
chmod a+x ./install.bash
|
|
|
|
|
./install.bash
|
|
|
|
|
```
|
|
|
|
|
* Alternatively install vagrant following [https://www.vagrantup.com/downloads](https://www.vagrantup.com/downloads):
|
2022-11-02 13:43:10 +00:00
|
|
|
{% case include.distro -%}
|
|
|
|
|
{% when "debian", "ubuntu" -%}
|
2022-07-19 14:48:02 +01:00
|
|
|
```shell
|
2022-08-09 08:59:57 +00:00
|
|
|
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.asc
|
|
|
|
|
echo "deb [ signed-by=/usr/share/keyrings/hashicorp-archive-keyring.asc ] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
|
2022-07-19 14:48:02 +01:00
|
|
|
sudo apt-get update && sudo apt-get install vagrant
|
|
|
|
|
```
|
2022-11-02 13:43:10 +00:00
|
|
|
{% when "fedora" -%}
|
2022-07-19 14:48:02 +01:00
|
|
|
```shell
|
|
|
|
|
sudo dnf install -y dnf-plugins-core
|
|
|
|
|
sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
|
|
|
|
|
sudo dnf -y install vagrant
|
|
|
|
|
```
|
2022-11-02 13:43:10 +00:00
|
|
|
{% when "centos", "centos8" -%}
|
|
|
|
|
```shell
|
|
|
|
|
sudo dnf install -y dnf-plugins-core
|
|
|
|
|
sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
|
|
|
|
|
sudo dnf -y install vagrant
|
|
|
|
|
```
|
|
|
|
|
{% when "centos6", "centos7" -%}
|
2022-07-19 14:48:02 +01:00
|
|
|
```shell
|
|
|
|
|
sudo yum install -y yum-utils
|
|
|
|
|
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
|
|
|
|
|
sudo yum -y install vagrant
|
|
|
|
|
```
|
2022-11-02 13:43:10 +00:00
|
|
|
{% when "opensuse" %}
|
|
|
|
|
|
2022-07-19 14:48:02 +01:00
|
|
|
As there is no upstream repository this will not be kept up to date automatically.
|
|
|
|
|
{: .warn }
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
version="$(
|
|
|
|
|
wget -qO - https://checkpoint-api.hashicorp.com/v1/check/vagrant 2>/dev/null | \
|
|
|
|
|
tr ',' '\n' | grep current_version | cut -d: -f2 | tr -d '"'
|
|
|
|
|
)"
|
|
|
|
|
wget --no-verbose -O vagrant.rpm \
|
|
|
|
|
https://releases.hashicorp.com/vagrant/${version}/vagrant_${version}_x86_64.rpm
|
|
|
|
|
sudo zypper install --allow-unsigned-rpm --no-confirm vagrant.rpm
|
|
|
|
|
```
|
2022-11-02 13:43:10 +00:00
|
|
|
{% else -%}
|
2022-07-19 14:48:02 +01:00
|
|
|
Missing the correct distro for vagrant install in site generation
|
2022-11-02 13:43:10 +00:00
|
|
|
{% endcase -%}
|