Deploying OpenStack with Opscode Chef                             sarah@opscode.com                              www.opsco...
Who am I?                  •      Sarah Novotny                        •    Senior Field Architect                        ...
Deploying OpenStack is                                  not simple.Thursday, October 20, 2011
Chef makes it easier.Thursday, October 20, 2011
Infrastructure as CodeThursday, October 20, 2011
Enable the reconstruction                                of the business from                             nothing but a so...
Configuration                             ManagementThursday, October 20, 2011
System Integration                                  http://www.flickr.com/photos/opalsson/3773629074/Thursday, October 20, ...
Thursday, October 20, 2011
The Chef Framework                  •      Reasonability                  •      Flexibility                  •      Libra...
The Chef Tool(s)                  •      ohai                  •      chef-client                  •      knife           ...
The Chef API                  •      Client/Server                  •      RESTful API w/ JSON                  •      Sea...
Chef Nodes                  •      Each system you manage is called a node.                  •      The chef-client runs o...
Chef Resources                                                           package "haproxy" do                             ...
Chef Recipes                                                     extra_packages = case node[:platform]                    ...
Chef Cookbooks                  •      Cookbooks are packages for Recipes                        •    Recipes             ...
Chef Roles                  •      Roles describe the node.                  •      Roles have run lists.                 ...
Chef Data Bags                  •      Data bags store arbitrary data                  •      JSON                  •     ...
The Chef Community                  •      Apache License, Version 2.0                  •      400+ Individual contributor...
openstack-cookbooks                                  ResourcesThursday, October 20, 2011
github.com/opscode/openstack-chef-repo                  •      Chef repository                        •    cookbooks      ...
OpenStack Cookbooks                  •      Included                        •    glance                        •    nova  ...
OpenStack Roles                  •      nova-single-machine                  •      nova-db                  •      nova-r...
Thursday, October 20, 2011
OpenStack Data Bags                             knife data bag create openstack                             knife data bag...
Deploying OpenStack                  •      Scaling changes how we deploy                  •      Nova installation with G...
Spiceweasel                  •      yaml/json for describing infrastructure                  •      generates knife comman...
Testing OpenStack               • bare-metal to OpenStack                • ~15 minutes                • pxe_dust cookbook ...
Crowbar                 •      OpenStack installer from Dell                 •      Components are "barclamps"            ...
knife openstackThursday, October 20, 2011
knife openstack                             $ gem install knife-openstack                             $ knife openstack   ...
knife.rb                             knife[:openstack_access_key_id]     = "MeMpLexdnjmXeXGMx:admin"                      ...
knife openstack server create -S mykey -x ubuntu             -I ami-4b0ff834 -f m1.tiny -r role[webserver]Thursday, Octobe...
Whats Next?                               http://www.flickr.com/photos/felixmorgner/4347750467/Thursday, October 20, 2011
Nova Roadmap                  •      Diablo support is under active                         development                  •...
Swift Roadmap                  •      Diablo support is next for active                         development               ...
OpenStack Roadmap                  •      Diablo release (RCB patches)                  •      Reference Architectures    ...
Get Involved!                  •      https://github.com/opscode/openstack-                         chef-repo             ...
Questions?                               http://www.flickr.com/photos/mrchippy/443960682/Thursday, October 20, 2011
Thanks!                             http://www.opscode.comThursday, October 20, 2011
Upcoming SlideShare
Loading in …5
×

Seattle OpenStack Meetup

2,005
-1

Published on

Sarah Novotny and Matt Ray's presentation from the Seattle OpenStack Meetup on 10/19/2011. Covered Chef basics and a snapshot of the current state of OpenStack cookbook development.

Published in: Technology, Self Improvement
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,005
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
47
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Seattle OpenStack Meetup

  1. 1. Deploying OpenStack with Opscode Chef sarah@opscode.com www.opscode.comThursday, October 20, 2011
  2. 2. Who am I? • Sarah Novotny • Senior Field Architect • Opscode, Inc. !"#$#%&$ • @sarahnovotny ()#)*$ • irc: senk +),*-./$Thursday, October 20, 2011
  3. 3. Deploying OpenStack is not simple.Thursday, October 20, 2011
  4. 4. Chef makes it easier.Thursday, October 20, 2011
  5. 5. Infrastructure as CodeThursday, October 20, 2011
  6. 6. Enable the reconstruction of the business from nothing but a source code repository, an application data backup, and bare metal resources.Thursday, October 20, 2011
  7. 7. Configuration ManagementThursday, October 20, 2011
  8. 8. System Integration http://www.flickr.com/photos/opalsson/3773629074/Thursday, October 20, 2011
  9. 9. Thursday, October 20, 2011
  10. 10. The Chef Framework • Reasonability • Flexibility • Library & Primitives • TIMTOWTDIThursday, October 20, 2011
  11. 11. The Chef Tool(s) • ohai • chef-client • knife • shefThursday, October 20, 2011
  12. 12. The Chef API • Client/Server • RESTful API w/ JSON • Search ServiceThursday, October 20, 2011
  13. 13. Chef Nodes • Each system you manage is called a node. • The chef-client runs on nodes. • The ohai discovery agent runs on nodes. • Nodes have a run list. • SearchableThursday, October 20, 2011
  14. 14. Chef Resources package "haproxy" do action :install end • Have a type. • template "/etc/haproxy/haproxy.cfg" do Have a name. source "haproxy.cfg.erb" • Have parameters. owner "root" group "root" • Take action to put the resource mode 0644 notifies :restart, "service[haproxy]" in the declared state. end • Can send notifications to other service "haproxy" do resources. supports :restart => true action [:enable, :start] • Take action through Providers endThursday, October 20, 2011
  15. 15. Chef Recipes extra_packages = case node[:platform] when "ubuntu","debian" %w{ ruby1.8 ruby1.8-dev • Ordered list of Resources rdoc1.8 ri1.8 • Idempotent execution } libopenssl-ruby • Ruby end extra_packages.each do |pkg| package pkg do action :install end endThursday, October 20, 2011
  16. 16. Chef Cookbooks • Cookbooks are packages for Recipes • Recipes • Assets (files/templates) • Attributes • Metadata • Distributable and managed as Source • community.opscode.comThursday, October 20, 2011
  17. 17. Chef Roles • Roles describe the node. • Roles have run lists. • Roles have attributes. • Roles may contain other roles. • Searchable. • Webserver, database, Hadoop-worker, etc.Thursday, October 20, 2011
  18. 18. Chef Data Bags • Data bags store arbitrary data • JSON • SearchableThursday, October 20, 2011
  19. 19. The Chef Community • Apache License, Version 2.0 • 400+ Individual contributors • 90+ Corporate contributors • Dell, Rackspace,VMware, RightScale, Heroku, and many more • 300+ cookbooks • http://community.opscode.comThursday, October 20, 2011
  20. 20. openstack-cookbooks ResourcesThursday, October 20, 2011
  21. 21. github.com/opscode/openstack-chef-repo • Chef repository • cookbooks • roles • data bags • diablo & essex milestones • issuesThursday, October 20, 2011
  22. 22. OpenStack Cookbooks • Included • glance • nova • swift • Future • dashboard • keystoneThursday, October 20, 2011
  23. 23. OpenStack Roles • nova-single-machine • nova-db • nova-rabbitmq-server • glance-single-machine • nova-multi-controller • nova-multi-compute • bit.ly/OSChef will receive a major update at or before the OpenStack dev conferenceThursday, October 20, 2011
  24. 24. Thursday, October 20, 2011
  25. 25. OpenStack Data Bags knife data bag create openstack knife data bag from file openstack defaults.json knife data bag from file openstack glance.json knife data bag from file openstack images.json knife data bag show openstack images id: images images: http://uec-images.ubuntu.com/lucid/current/ubuntu-10.04- server-uec-amd64.tar.gz: arch: x86_64 distro: Ubuntu image: lucid-server-uec-amd64.img kernel: lucid-server-uec-amd64-vmlinuz-virtual version: 10.04Thursday, October 20, 2011
  26. 26. Deploying OpenStack • Scaling changes how we deploy • Nova installation with Glance, Keystone & Dashboard • Production-ready Swift soon • Lightweight HA • Upgradeable • Configurations will be supported, shared & documentedThursday, October 20, 2011
  27. 27. Spiceweasel • yaml/json for describing infrastructure • generates knife commands • shareable "best practices" • infrastructure.yml included • bit.ly/spcwslThursday, October 20, 2011
  28. 28. Testing OpenStack • bare-metal to OpenStack • ~15 minutes • pxe_dust cookbook • 2 networks • admin • publicThursday, October 20, 2011
  29. 29. Crowbar • OpenStack installer from Dell • Components are "barclamps" • Dell released this under the Apache 2 license • Extension of the Chef server • Developed by Dell, Rackspace & Opscode • https://github.com/dellcloudedge/ crowbarThursday, October 20, 2011
  30. 30. knife openstackThursday, October 20, 2011
  31. 31. knife openstack $ gem install knife-openstack $ knife openstack ** OPENSTACK COMMANDS ** knife openstack server list (options) knife openstack flavor list (options) knife openstack server create (options) knife openstack server delete SERVER [SERVER] (options) knife openstack image list (options)Thursday, October 20, 2011
  32. 32. knife.rb knife[:openstack_access_key_id] = "MeMpLexdnjmXeXGMx:admin" knife[:openstack_secret_access_key] = "nFjXAKl5G6VaXE3bVuwi" knife[:openstack_api_endpoint] = "http://192.168.11.9:8773/services/Cloud"Thursday, October 20, 2011
  33. 33. knife openstack server create -S mykey -x ubuntu -I ami-4b0ff834 -f m1.tiny -r role[webserver]Thursday, October 20, 2011
  34. 34. Whats Next? http://www.flickr.com/photos/felixmorgner/4347750467/Thursday, October 20, 2011
  35. 35. Nova Roadmap • Diablo support is under active development • Network Types • Flat, FlatDHCP, VLANs, HA DHCP • Multiple Hypervisors • KVM, Xen, LXC, Hyper-V • Databases • PostgreSQL, DrizzleThursday, October 20, 2011
  36. 36. Swift Roadmap • Diablo support is next for active development • Rackspace has a lot of operational experience to incorporate • Other vendors will collaborate • Ceph?Thursday, October 20, 2011
  37. 37. OpenStack Roadmap • Diablo release (RCB patches) • Reference Architectures • Essex milestones (RCB patches) • More collaborators • RHEL 6 & Fedora • WindowsThursday, October 20, 2011
  38. 38. Get Involved! • https://github.com/opscode/openstack- chef-repo • https://github.com/dellcloudedge • http://wiki.opscode.com/display/chef/ Deploying+OpenStack+with+Chef • irc.freenode.net #chef #openstack • Twitter/GitHub/Launchpad/IRC:mattray • matt@openstack.org/matt@opscode.comThursday, October 20, 2011
  39. 39. Questions? http://www.flickr.com/photos/mrchippy/443960682/Thursday, October 20, 2011
  40. 40. Thanks! http://www.opscode.comThursday, October 20, 2011
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×