| |
| |
| |
| VAGRANTFILE_API_VERSION = "2" |
| |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
| config.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/28/Cloud/x86_64/images/Fedora-Cloud-Base-Vagrant-28-1.1.x86_64.vagrant-libvirt.box" |
| config.vm.box = "f28-cloud-libvirt" |
| |
| |
| |
| 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 "ansible" do |ansible| |
| ansible.playbook = "dev/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 |