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

Ops for Devs

Ops for Devs

A quick introduction to the "devops" buzzword for those that don't like dealing with servers.

Peter Sobot

May 03, 2013

More Decks by Peter Sobot

Other Decks in Programming


  1. BUT

  2. WE HAVE TO CARE ABOUT SERVERS bugs in production! version

    mismatches! kernel issues! hardware failures! security holes! architecture mismatches! missing hardware instructions! virtualization bugs! performance drops! server bills! client latency! bandwidth costs! internet!!1! omg hakx!
  3. class nginx { package { 'nginx': ensure => latest }

    service { 'nginx': ensure => running } file { '/etc/nginx/nginx.conf': ensure => present, source => 'puppet:///modules/nginx/nginx.conf', notify => Service['nginx'], } }
  4. Vagrant.configure("2") do |config| config.vm.box = "precise64" config.vm.box_url = "http://files.vagrantup.com/precise64.box" config.vm.network

    :forwarded_port, guest: 80, host: 8080 config.vm.network :forwarded_port, guest: 443, host: 8443 config.vm.synced_folder "./", "/var/www/" config.vm.provider :virtualbox do |vb| vb.customize ["modifyvm", :id, "--memory", "2048"] end config.vm.provision :puppet do |puppet| puppet.module_path = "puppet/modules" puppet.manifests_path = "puppet" puppet.manifest_file = "wubmachine.pp" end end choose any OS use your Puppet code share folders map ports