0
Deploying OpenStack with Opscode Chef                            matt@opscode.com                            www.opscode.c...
Who am I?                  •         Matt Ray                            •   Senior Technical Evangelist                  ...
Deploying and Managing                            OpenStack is not simple.Thursday, February 16, 12
Chef makes it easier.Thursday, February 16, 12
Infrastructure as CodeThursday, February 16, 12
Enable the reconstruction                               of the business from                            nothing but a sour...
Configuration                            ManagementThursday, February 16, 12
System Integration                                 http://www.flickr.com/photos/opalsson/3773629074/Thursday, February 16, 12
The Chef Community                  •         Apache License, Version 2.0                  •         550+ Individual contr...
openstack-cookbooks                                 Resources                                  crowbar                    ...
github.com/mattray/openstack-cookbooks                  •         Chef repository for deploying OpenStack                 ...
Crowbar                 •      Datacenter installer from Dell                        •   Extension of the Chef server     ...
github.com/openstack/openstack-chef                  •         Chef repository for deploying OpenStack                    ...
Deploying OpenStack                  •         Chef ties it all together automatically                  •         Scaling ...
knife openstackThursday, February 16, 12
knife openstack                            $ knife openstack                            Available openstack subcommands: (...
knife.rb                            #trystack.org                            knife[:openstack_username] = "mattray"       ...
knife openstack flavor list                            $ knife openstack flavor list                            ID        ...
knife openstack image list                            $ knife openstack image list                            ID          ...
knife openstack server create --node-name ko1 --flavor 1 --image 13 -S trystackThursday, February 16, 12
knife openstack                            $ knife openstack server list                            Instance ID Name Publi...
Thursday, February 16, 12
$ ssh -i ~/.ssh/trystack.pem ubuntu@8.21.28.24                            The authenticity of host 8.21.28.24 (8.21.28.24)...
$ knife bootstrap 8.21.28.24 -i ~/.ssh/trystack.pem -x ubuntu --sudo -d omnibus       Bootstrapping Chef on 8.21.28.24    ...
Yay Bleeding Edge!                            $   git clone git@github.com:mattray/fog.git                            $   ...
Whats Next?                              http://www.flickr.com/photos/felixmorgner/4347750467/Thursday, February 16, 12
knife-openstack roadmap                  •         Patches will be merged upstream                  •         http://wiki....
Chef Roadmap                  •         Diablo release (RCB patches)                  •         Essex milestones (RCB patc...
Questions?                              http://www.flickr.com/photos/mrchippy/443960682/Thursday, February 16, 12
Thanks!                            http://www.opscode.comThursday, February 16, 12
Upcoming SlideShare
Loading in...5
×

Austin OpenStack Meetup: Chef and OpenStack

2,893

Published on

Presentation on the state of Chef support around the OpenStack ecosystem for the Austin OpenStack Meetup February 16, 2012.

Published in: Technology, Business
0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,893
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
54
Comments
0
Likes
5
Embeds 0
No embeds

No notes for slide

Transcript of "Austin OpenStack Meetup: Chef and OpenStack"

  1. 1. Deploying OpenStack with Opscode Chef matt@opscode.com www.opscode.comThursday, February 16, 12
  2. 2. Who am I? • Matt Ray • Senior Technical Evangelist • Opscode, Inc. • Twitter/GitHub/Launchpad/IRC: mattrayThursday, February 16, 12
  3. 3. Deploying and Managing OpenStack is not simple.Thursday, February 16, 12
  4. 4. Chef makes it easier.Thursday, February 16, 12
  5. 5. Infrastructure as CodeThursday, February 16, 12
  6. 6. Enable the reconstruction of the business from nothing but a source code repository, an application data backup, and bare metal resources.Thursday, February 16, 12
  7. 7. Configuration ManagementThursday, February 16, 12
  8. 8. System Integration http://www.flickr.com/photos/opalsson/3773629074/Thursday, February 16, 12
  9. 9. The Chef Community • Apache License, Version 2.0 • 550+ Individual contributors • 100+ Corporate contributors • Dell, Rackspace,VMware, RightScale, Heroku, and many more • 400+ cookbooks • http://community.opscode.comThursday, February 16, 12
  10. 10. openstack-cookbooks Resources crowbar openstack-chefThursday, February 16, 12
  11. 11. github.com/mattray/openstack-cookbooks • Chef repository for deploying OpenStack • Bexar/Cactus • source for many other efforts • Crowbar • Mercado Libre • HP • http://wiki.opscode.com/display/chef/ Deploying+OpenStack+with+Chef • deprecatedThursday, February 16, 12
  12. 12. Crowbar • Datacenter installer from Dell • Extension of the Chef server • Components are "barclamps" • Dell released under the Apache 2 license • Developed by Dell, Rackspace & Opscode • Active Development & Community • https://github.com/dellcloudedge/ crowbarThursday, February 16, 12
  13. 13. github.com/openstack/openstack-chef • Chef repository for deploying OpenStack • Diablo • trunk (Essex) • source for many other efforts • TryStack.org • Smokestack testing • mattray/openstack-chefThursday, February 16, 12
  14. 14. Deploying OpenStack • Chef ties it all together automatically • Scaling changes how we deploy • Configurations will be supported, shared & documented • Licensing makes it available to everyoneThursday, February 16, 12
  15. 15. knife openstackThursday, February 16, 12
  16. 16. knife openstack $ knife openstack Available openstack subcommands: (for details, knife SUB- COMMAND --help) ** OPENSTACK COMMANDS ** knife openstack flavor list (options) knife openstack image list (options) knife openstack server create (options) knife openstack server delete SERVER [SERVER] (options) knife openstack server list (options)Thursday, February 16, 12
  17. 17. knife.rb #trystack.org knife[:openstack_username] = "mattray" knife[:openstack_password] = "password" knife[:openstack_auth_url] = "http://trystack.org:5000/v2.0/tokens" #demo.rcb.me knife[:openstack_username] = "opscode" knife[:openstack_password] = "password" knife[:openstack_auth_url] = "http://demo.rcb.me:5000/v2.0/tokens"Thursday, February 16, 12
  18. 18. knife openstack flavor list $ knife openstack flavor list ID Name RAM Disk 1 m1.tiny 512 MB 0 GB 2 m1.small 2048 MB 20 GB 3 m1.medium 4096 MB 40 GB 4 m1.large 8192 MB 80 GB 5 m1.xlarge 16384 MB 160 GBThursday, February 16, 12
  19. 19. knife openstack image list $ knife openstack image list ID Name 13 natty-server-cloudimg-amd64 12 natty-server-cloudimg-amd64-kernel 15 oneiric-server-cloudimg-amd64 14 oneiric-server-cloudimg-amd64-kernelThursday, February 16, 12
  20. 20. knife openstack server create --node-name ko1 --flavor 1 --image 13 -S trystackThursday, February 16, 12
  21. 21. knife openstack $ knife openstack server list Instance ID Name Public IP Private IP Flavor Image Keypair State 185 ko1 8.21.28.24 8.21.28.24 1 13 trystack activeThursday, February 16, 12
  22. 22. Thursday, February 16, 12
  23. 23. $ ssh -i ~/.ssh/trystack.pem ubuntu@8.21.28.24 The authenticity of host 8.21.28.24 (8.21.28.24) cant be established. RSA key fingerprint is 0c:d8:3e:34:d1:de:c4:ee:5f:bc:b5:89:11:0d:73:e0. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 8.21.28.24 (RSA) to the list of known hosts. Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-13-virtual x86_64) * Documentation: https://help.ubuntu.com/ System information as of Thu Feb 16 23:43:29 UTC 2012 System load: 0.08 Processes: 63 Usage of /: 40.8% of 1.35GB Users logged in: 0 Memory usage: 6% IP address for eth0: 8.21.28.24 Swap usage: 0% --------------------------------------------------------------------- <snip> Get cloud support with Ubuntu Advantage Cloud Guest http://www.ubuntu.com/business/services/cloud The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@ko1:~$Thursday, February 16, 12
  24. 24. $ knife bootstrap 8.21.28.24 -i ~/.ssh/trystack.pem -x ubuntu --sudo -d omnibus Bootstrapping Chef on 8.21.28.24 8.21.28.24 [Thu, 16 Feb 2012 23:51:40 +0000] INFO: *** Chef 0.10.8 *** 8.21.28.24 [Thu, 16 Feb 2012 23:51:40 +0000] INFO: Client key /etc/chef/ client.pem is not present - registering 8.21.28.24 [Thu, 16 Feb 2012 23:51:42 +0000] INFO: Setting the run_list to [] from JSON 8.21.28.24 [Thu, 16 Feb 2012 23:51:42 +0000] INFO: Run List is [] 8.21.28.24 [Thu, 16 Feb 2012 23:51:42 +0000] INFO: Run List expands to [] 8.21.28.24 [Thu, 16 Feb 2012 23:51:42 +0000] INFO: Starting Chef Run for ko1.novalocal 8.21.28.24 [Thu, 16 Feb 2012 23:51:42 +0000] INFO: Running start handlers 8.21.28.24 [Thu, 16 Feb 2012 23:51:42 +0000] INFO: Start handlers complete. 8.21.28.24 [Thu, 16 Feb 2012 23:51:43 +0000] INFO: Loading cookbooks [] 8.21.28.24 [Thu, 16 Feb 2012 23:51:43 +0000] WARN: Node ko1.novalocal has an empty run list. 8.21.28.24 [Thu, 16 Feb 2012 23:51:44 +0000] INFO: Chef Run complete in 1.414499044 seconds 8.21.28.24 [Thu, 16 Feb 2012 23:51:44 +0000] INFO: Running report handlers 8.21.28.24 [Thu, 16 Feb 2012 23:51:44 +0000] INFO: Report handlers completeThursday, February 16, 12
  25. 25. Yay Bleeding Edge! $ git clone git@github.com:mattray/fog.git $ cd fog $ gem build fog.gemspec $ gem install fog-1.1.2.gem $ git clone -b 0.6.0 git@github.com:mattray/knife-openstack.git $ cd knife-openstack $ gem build knife-openstack.gemspec $ gem install knife-openstack-0.6.0.gemThursday, February 16, 12
  26. 26. Whats Next? http://www.flickr.com/photos/felixmorgner/4347750467/Thursday, February 16, 12
  27. 27. knife-openstack roadmap • Patches will be merged upstream • http://wiki.opscode.com/display/chef/ OpenStack+Bootstrap+Fast+Start+Guide • bootstrap will be fixed • Push to Rubygems.org • Testing will be done with Crowbar • Essex/trunk support will be tested • security groups and floating IPsThursday, February 16, 12
  28. 28. Chef Roadmap • Diablo release (RCB patches) • Essex milestones (RCB patches) • Multiple Hypervisors • KVM, Xen, LXC? • Databases • PostgreSQL, MySQL • HA Support • Red Hat/Illumos?Thursday, February 16, 12
  29. 29. Questions? http://www.flickr.com/photos/mrchippy/443960682/Thursday, February 16, 12
  30. 30. Thanks! http://www.opscode.comThursday, February 16, 12
  1. A particular slide catching your eye?

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

×