Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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:

Szymon Skórczyński

March 07, 2014

More Decks by Szymon Skórczyński

Other Decks in Programming


  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: "" 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' }, ], }