2013-09-25 23:27:25 +03:00
|
|
|
VAGRANTFILE_API_VERSION = "2"
|
|
|
|
|
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
|
|
config.vm.box = "precise64"
|
|
|
|
config.vm.synced_folder "srv/", "/srv/"
|
|
|
|
config.vm.provision :salt do |salt|
|
|
|
|
salt.minion_config = "srv/minion"
|
|
|
|
salt.run_highstate = true
|
|
|
|
end
|
2013-10-02 07:32:53 +03:00
|
|
|
config.vm.provider :digital_ocean do |provider, override|
|
|
|
|
override.ssh.private_key_path = '~/.ssh/id_dsa'
|
|
|
|
override.vm.box = 'digital_ocean'
|
|
|
|
override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
|
|
|
|
|
|
|
|
provider.client_id = ''
|
|
|
|
provider.api_key = ''
|
|
|
|
end
|
2013-09-25 23:27:25 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
Vagrant::Config.run do |config|
|
|
|
|
config.vm.forward_port 80, 8000
|
2013-09-29 00:09:02 +03:00
|
|
|
config.vm.forward_port 10000, 10000
|
|
|
|
config.vm.forward_port 20000, 20000
|
2013-09-25 23:27:25 +03:00
|
|
|
end
|