Vagrant & Puppet

Vagrant & Puppet

Vagrant lets us create lightweight and portable dev envs, while Puppet makes configuring them easy. The presentation is about how this great tandem can make PHP developers life easier.

Video of the talk (in Polish): https://www.youtube.com/watch?v=CFs6BFfYTCs

Further reading:
http://www.vagrantup.com/
https://puppetlabs.com/puppet/what-is-puppet/
https://puphpet.com/
http://net.tutsplus.com/tutorials/php/vagrant-what-why-and-how/

Szymon Skórczyński

March 07, 2014

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

41 slides
  1. Vagrant.configure("2") do |config| config.vm.box = "precise32" config.vm.box_url = "http://files.vagrantup.com/precise32.box" config.vm.network

    :private_network, ip: "192.168.56.101" config.vm.network :forwarded_port, guest: 80, host: 8091 config.ssh.forward_agent = true config.vm.provider :virtualbox do |v| v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] v.customize ["modifyvm", :id, "--memory", 1024] v.customize ["modifyvm", :id, "--name", "my-first-box"] end config.vm.synced_folder "./", "/var/www", id: "vagrant-root” end
  2. sudo apt-get update sudo apt-get install apache2 sudo apt-get install

    php5 sudo apt-get install phpmyadmin sudo apt-get install mysql-server sudo apt-get install libapache2-mod-auth-mysql sudo apt-get install php5-mysql
  3. apache::vhost { 'didactus.app.yteach.dev': server_name => 'didactus.app.yteach.dev', docroot => '/var/www/yteach/portal/web', port

    => '80', aliases => [ { alias => '/files', path => '/var/www/files' }, { alias => '/uploaded_files', path => '/var/www/files/uploaded_files' }, ], }

More Decks by Szymon Skórczyński

Other Decks in Programming