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

Deploy Drupal with Chef

Deploy Drupal with Chef

A lightning talk that shows the process of going from zero-to-Drupal with Chef.

Nathen Harvey

January 14, 2013
Tweet

More Decks by Nathen Harvey

Other Decks in Technology

Transcript

  1. The Joy of Cooking:
    Deploying Drupal with Chef
    Nathen Harvey

    @nathenharvey

    January 14, 2013

    View full-size slide

  2. Agenda
    •  Overview of Chef
    •  Meet Vagrant
    •  Zero-to-Drupal with Chef
    •  Drupal on EC2

    View full-size slide

  3. What is Chef?
    Recipes and Cookbooks
    that describe Infrastructure as Code.
    Chef enables people to easily build &
    manage complex & dynamic applications
    at massive scale
    • New model for describing infrastructure that
    promotes reuse
    • Programmatically provision and configure
    • Reconstruct business from code repository,
    data backup, and bare metal resources
    Chef is an automation platform for developers & systems engineers to continuously
    define, build, and manage infrastructure.
    CHEF USES:




    View full-size slide

  4. Components of Chef

    View full-size slide

  5. Meet Vagrant
    http://vagrantup.com

    View full-size slide

  6. Zero-to-Drupal with Chef
    •  Download Cookbooks from community.opscode.com

    View full-size slide

  7. Zero-to-Drupal with Chef
    •  Upload Cookbooks to Hosted Chef

    View full-size slide

  8. Zero-to-Drupal with Chef
    •  Configure Vagrant
    Vagrant::Config.run do |config|
    config.vm.box = "drupal-ubuntu-12.04"
    config.vm.box_url = "https://opscode-vm…com/…/…/opscode-ubuntu-12.04.box"
    config.vm.forward_port 80, 8080
    # Use this configuration for chef-client and a Chef server
    config.vm.provision :chef_client do |chef|
    chef.chef_server_url = "https://api.opscode.com/organizations/learnchef"
    chef.validation_key_path = "./.chef/learnchef-validator.pem"
    chef.validation_client_name = "learnchef-validator"
    chef.add_recipe("apt")
    chef.add_recipe("drupal")
    chef.node_name = "vagrant_drupal"
    end
    end

    View full-size slide

  9. Zero-to-Drupal with Chef
    •  vagrant up

    View full-size slide

  10. Drupal on EC2
    •  knife ec2 server create -r 'recipe[apt],recipe[drupal]' -f t1.micro -N
    ec2_drupal -I ami-3d4ff254 -x ubuntu

    View full-size slide

  11. Zero-to-Drupal with Chef

    View full-size slide

  12. Thank You
    •  What questions do you have?
    •  https://github.com/learnchef/deploy_drupal
    •  Chef Introductory Workshop – Feb 27 – “MEETUP” saves you 10%
    •  Nathen Harvey
    •  Technical Community Manager, Opscode
    •  [email protected]
    •  @nathenharvey

    View full-size slide