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/

Efa1d75eaaafa76ef74a9310bc58fcf8?s=128

Szymon Skórczyński

March 07, 2014
Tweet

Transcript

  1. None
  2. None
  3. None
  4.     

  5. None
  6. None
  7. None
  8. None
  9. None
  10. None
  11. None
  12. None
  13. None
  14. None
  15. 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
  16. None
  17. None
  18. None
  19. None
  20. None
  21. 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
  22. None
  23. None
  24. package { [ 'curl' ]: ensure => 'installed', } sudo

    apt-get install curl
  25. None
  26. 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' }, ], }
  27. None
  28. None
  29. None
  30. None
  31. None
  32.     

  33. None
  34. None
  35. None
  36. None
  37. None
  38. None