forked from fedora-infra/bodhi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile.example
31 lines (26 loc) · 1.03 KB
/
Vagrantfile.example
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# On your host:
# git clone https://github.com/fedora-infra/bodhi.git
# cd bodhi
# cp Vagrantfile.example Vagrantfile
# vagrant up
# vagrant ssh -c "cd /vagrant/; pserve development.ini --reload"
Vagrant.configure(2) do |config|
config.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/24/CloudImages/x86_64/images/Fedora-Cloud-Base-Vagrant-24-1.2.x86_64.vagrant-libvirt.box"
config.vm.box = "f24-cloud-libvirt"
config.vm.network "forwarded_port", guest: 6543, host: 6543
config.vm.synced_folder ".", "/vagrant", type: "sshfs"
config.vm.provider :libvirt do |domain|
domain.cpus = 4
domain.graphics_type = "spice"
# The unit tests use a lot of RAM.
domain.memory = 4096
domain.video_type = "qxl"
end
# Ansible needs the guest to have these
config.vm.provision "shell", inline: "sudo dnf install -y libselinux-python python2-dnf"
config.vm.provision "ansible" do |ansible|
ansible.playbook = "devel/ansible/playbook.yml"
end
end