Skip to content

Instantly share code, notes, and snippets.

@kamaulynder
Created October 6, 2014 21:02
Show Gist options
  • Save kamaulynder/0ec3067c9578d630d769 to your computer and use it in GitHub Desktop.
Save kamaulynder/0ec3067c9578d630d769 to your computer and use it in GitHub Desktop.
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 Vagrant.configure("2") do |config|
5 config.vm.box = "ubuntu/trusty64" # provided by VagrantCloud
6
7 config.vm.provider :virtualbox do |vb|
8 vb.name = "ping"
9 end
10
11 config.vm.post_up_message = "Vagrant for Ping is now running.\nUse `vagrant ssh` to ssh into the VM"
12
13 # Use your preferred network method:
14
15 # Create a forwarded port mapping which allows access to a specific port
16 # within the machine from a port on the host machine. In the example below,
17 # accessing "localhost:8080" will access port 80 on the guest machine.
18 # config.vm.network :forwarded_port, guest: 80, host: 8080
19
20 # Create a private network, which allows host-only access to the machine
21 # using a specific IP.
22 # config.vm.network :private_network, ip: "192.168.42.100", auto_correct: true
23
24 # Create a public network, which generally matched to bridged network.
25 # Bridged networks make the machine appear as another physical device on
26 # your network.
27 # config.vm.network :public_network, ip: "192.168.0.100", auto_correct: true, :bridge => 'en0: Wi-Fi (AirPort)'
28
29 # Share an additional folder to the guest VM. The first argument is
30 # the path on the host to the actual folder. The second argument is
31 # the path on the guest to mount the folder. And the optional third
32 # argument is a set of non-required options.
33 config.vm.synced_folder "/var/wwwdocs/ping", "/mnt/ping", :owner => 'vagrant', :group => 'www-data', :mount_options => ['dmode=775,fmode=775']
34
35 config.vm.provision :ansible do |ansible|
36 ansible.playbook = "conf/playbook.yml"
37 end
38 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment