-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
24 lines (20 loc) · 1.07 KB
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "humaton/fedora-21-cloud"
config.vm.host_name = "pulp-devel"
config.vm.synced_folder "..", "/home/vagrant/devel", type: "nfs", nfs_version: 4, nfs_udp: false
# By default, Vagrant wants to mount the code in /vagrant with NFSv3, which will fail. Let's
# explicitly mount the code using NFSv4. We probably won't need to use this, since the above line
# configures all the code we need for us, but vagrant up will fail without this line.
config.vm.synced_folder ".", "/vagrant", type: "nfs", nfs_version: 4, nfs_udp: false
config.vm.provider :libvirt do |domain|
domain.memory = 2048
domain.cpus = 2
end
config.vm.provision "shell", inline: "yum install -y deltarpm"
config.vm.provision "shell", inline: "yum update -y"
config.vm.provision "shell", inline: "yum install -y vagrant vagrant-libvirt vagrant-lxc"
config.vm.provision "shell", inline: "sudo -u vagrant bash -e /home/vagrant/devel/pulp/playpen/vagrant-setup.sh"
end