| |
| |
| |
| VAGRANTFILE_API_VERSION = "2" |
| |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
| config.vm.box = "fedora/24-cloud-base" |
| |
| |
| config.vm.network "forwarded_port", guest: 5000, host: 5000 |
| |
| config.vm.network "forwarded_port", guest: 6379, host: 6379 |
| |
| config.vm.network "forwarded_port", guest: 8080, host: 8080 |
| |
| if Vagrant.has_plugin?("vagrant-hostmanager") |
| config.hostmanager.enabled = true |
| config.hostmanager.manage_host = true |
| end |
| |
| |
| |
| |
| |
| |
| config.vm.synced_folder ".", "/vagrant", disabled: true |
| config.vm.synced_folder ".", "/home/vagrant/devel", type: "sshfs", sshfs_opts_append: "-o nonempty" |
| |
| |
| |
| |
| |
| |
| |
| |
| config.vm.provision "shell", inline: "sudo dnf upgrade -y" |
| |
| |
| config.vm.provision "shell", inline: "sudo dnf -y install python2-dnf libselinux-python" |
| config.vm.provision "ansible" do |ansible| |
| ansible.playbook = "ansible/vagrant-playbook.yml" |
| end |
| |
| |
| |
| config.vm.define "pagure" do |pagure| |
| pagure.vm.host_name = "pagure-dev.example.com" |
| |
| pagure.vm.provider :libvirt do |domain| |
| |
| domain.cpus = 4 |
| domain.graphics_type = "spice" |
| domain.memory = 2048 |
| domain.video_type = "qxl" |
| |
| |
| |
| |
| |
| |
| |
| |
| end |
| end |
| end |