forked from packit/packit-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
34 lines (29 loc) · 951 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Vagrant.configure("2") do |config|
if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = false
end
config.vm.box = "fedora/30-cloud-base"
config.vm.box_version = "v30.20190425.0"
config.vm.synced_folder ".", "/vagrant"
config.vm.provider "virtualbox" do |virtualbox|
virtualbox.memory = 1024
end
config.vm.provider "libvirt" do |virtualbox|
virtualbox.memory = 1024
end
config.vm.provision "shell", inline: <<-SHELL
set -x
dnf install -y ansible
SHELL
config.vm.provision :ansible_local do |ansible|
ansible.verbose = "v"
ansible.playbook = "files/install-rpm-packages.yaml"
ansible.extra_vars = { ansible_python_interpreter: "/usr/bin/python3" }
ansible.become = true
end
config.vm.provision "shell", inline: <<-SHELL
pip3 install ogr
cd /vagrant
pip3 install .
SHELL
end