On Github EddieWoodley / slides-vagrant-intro
I want this VM, set up in this way.
Everyone has the same machine.
Get a fresh environment set up in minutes.
Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" end
Everyone has the same machine, but there's nothing on it.
Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" config.vm.provision "shell", path: "setup.sh" end
Install a web server and configure it.
# Install a web server package { 'nginx': ensure => latest } # Configure the web server file { 'setup-nginx-node': path => '/etc/nginx/sites-enabled/config', ensure => link, require => Package['nginx'], source => '/vagrant/files/nginx_config' }
Install NodeJS and the build tools.
# Install NodeJS class { 'nodejs': version => 'stable', } # Install build tools package { 'grunt-cli': ensure => '0.1.x', provider => 'npm', } package { 'karma': ensure => '0.12.x', provider => 'npm', } package { 'bower': ensure => '1.3.x', provider => 'npm', }