1
0
Fork 0
intro-to-vagrant/slides/the-vagrantfile.md

20 lines
468 B
Markdown
Raw Normal View History

2015-02-04 13:15:00 -05:00
## The Vagrantfile
2015-02-04 16:58:48 -05:00
```
2015-02-05 00:54:31 -05:00
Vagrant.configure(2) do |config|
2015-02-04 16:58:48 -05:00
# Installs the operating system
config.vm.box = 'ubuntu/trusty64'
# Configures the virtual machine
2015-02-05 00:54:31 -05:00
config.vm.network 'private_network', ip: '192.168.111.10'
2015-02-04 16:58:48 -05:00
config.vm.synced_folder 'code/', '/home/vagrant/app'
# Provisions the system
config.vm.provision 'shell', path: 'provision/bootstrap.sh'
end
```
2015-02-04 13:15:00 -05:00
note:
2015-02-09 09:13:56 -05:00
Three main things: Install OS, configure VM, provision system