# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.define :swarm do |swarm_config| swarm_config.vm.box = "precise64" swarm_config.vm.box_url = "http://files.vagrantup.com/precise64.box" swarm_config.vm.network :forwarded_port, guest: 80, host: 8080 swarm_config.vm.network :forwarded_port, guest: 1666, host: 1666 swarm_config.vm.network :forwarded_port, guest: 9000, host: 9000 swarm_config.vm.network :private_network, ip: "192.168.33.02" swarm_config.vm.hostname = "swarm.perforce.vm" swarm_config.vm.synced_folder "./", "/vagrant", id: "vagrant-root", owner: "vagrant", group: "www-data" swarm_config.vm.synced_folder "module/", "/var/www/swarm/module", owner: "www-data", group: "www-data" swarm_config.vm.synced_folder "public/", "/var/www/swarm/public", owner: "www-data", group: "www-data" swarm_config.vm.synced_folder "library/", "/var/www/swarm/library", owner: "www-data", group: "www-data" swarm_config.vm.synced_folder "module/", "/var/www/swarm/module", owner: "www-data", group: "www-data" swarm_config.vm.provision :puppet do |puppet| puppet.module_path = "manifests/modules" puppet.manifests_path = "manifests" puppet.manifest_file = "swarm.pp" end end end