SlideShare a Scribd company logo
1 of 40
Download to read offline
Deploying OpenStack with Opscode Chef



                             sarah@opscode.com
                              www.opscode.com




Thursday, October 20, 2011
Who am I?




                  •      Sarah Novotny
                        •    Senior Field Architect
                        •    Opscode, Inc.
                                                      !"#$#%&'$
                        •    @sarahnovotny              ()#)*$

                        •    irc: senk
                                                       +),*-./$




Thursday, October 20, 2011
Deploying OpenStack is
                                  not simple.


Thursday, October 20, 2011
Chef makes it easier.


Thursday, October 20, 2011
Infrastructure as Code


Thursday, October 20, 2011
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
Configuration
                             Management


Thursday, October 20, 2011
System Integration


                                  http://www.flickr.com/photos/opalsson/3773629074/

Thursday, October 20, 2011
Thursday, October 20, 2011
The Chef Framework




                  •      Reasonability
                  •      Flexibility
                  •      Library & Primitives
                  •      TIMTOWTDI




Thursday, October 20, 2011
The Chef Tool(s)




                  •      ohai
                  •      chef-client
                  •      knife
                  •      shef




Thursday, October 20, 2011
The Chef API




                  •      Client/Server
                  •      RESTful API w/ JSON
                  •      Search Service




Thursday, October 20, 2011
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.
                  •      Searchable



Thursday, October 20, 2011
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     end



Thursday, October 20, 2011
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
                                                     end


Thursday, October 20, 2011
Chef Cookbooks




                  •      Cookbooks are packages for Recipes
                        •    Recipes
                        •    Assets (files/templates)
                        •    Attributes
                        •    Metadata
                  •      Distributable and managed as Source
                  •      community.opscode.com


Thursday, October 20, 2011
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
Chef Data Bags




                  •      Data bags store arbitrary data
                  •      JSON
                  •      Searchable




Thursday, October 20, 2011
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.com


Thursday, October 20, 2011
openstack-cookbooks
                                  Resources


Thursday, October 20, 2011
github.com/opscode/openstack-chef-repo




                  •      Chef repository
                        •    cookbooks
                        •    roles
                        •    data bags
                  •      diablo & essex milestones
                  •      issues



Thursday, October 20, 2011
OpenStack Cookbooks




                  •      Included
                        •    glance
                        •    nova
                        •    swift

                  •      Future
                        •    dashboard
                        •    keystone


Thursday, October 20, 2011
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 conference

Thursday, October 20, 2011
Thursday, October 20, 2011
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.04



Thursday, October 20, 2011
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 &
                         documented

Thursday, October 20, 2011
Spiceweasel




                  •      yaml/json for describing infrastructure
                  •      generates knife commands
                  •      shareable "best practices"
                  •      infrastructure.yml included
                  •      bit.ly/spcwsl



Thursday, October 20, 2011
Testing OpenStack




               • bare-metal to OpenStack
                • ~15 minutes
                • pxe_dust cookbook
               • 2 networks
                • admin
                • public

Thursday, October 20, 2011
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/
                        crowbar


Thursday, October 20, 2011
knife openstack


Thursday, October 20, 2011
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
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
knife openstack server create -S mykey -x ubuntu
             -I ami-4b0ff834 -f m1.tiny -r 'role[webserver]'




Thursday, October 20, 2011
What's Next?


                               http://www.flickr.com/photos/felixmorgner/4347750467/

Thursday, October 20, 2011
Nova Roadmap




                  •      Diablo support is under active
                         development
                  •      Network Types
                        •    Flat, FlatDHCP, VLANs, HA DHCP
                  •      Multiple Hypervisors
                        •    KVM, Xen, LXC, Hyper-V
                  •      Databases
                        •    PostgreSQL, Drizzle

Thursday, October 20, 2011
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
OpenStack Roadmap




                  •      Diablo release (RCB patches)
                  •      Reference Architectures
                  •      Essex milestones (RCB patches)
                  •      More collaborators
                  •      RHEL 6 & Fedora
                  •      Windows



Thursday, October 20, 2011
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.com

Thursday, October 20, 2011
Questions?


                               http://www.flickr.com/photos/mrchippy/443960682/
Thursday, October 20, 2011
Thanks!


                             http://www.opscode.com




Thursday, October 20, 2011

More Related Content

Viewers also liked

Универсальный энергосберегающий режущий аппарат
Универсальный энергосберегающий режущий аппаратУниверсальный энергосберегающий режущий аппарат
Универсальный энергосберегающий режущий аппарат
kulibin
 
Ux paper prototyping
Ux paper prototypingUx paper prototyping
Ux paper prototyping
Grace Ng
 
Impacto de las tic en la educacion karen
Impacto de las tic en la educacion karenImpacto de las tic en la educacion karen
Impacto de las tic en la educacion karen
karenvilla4c
 
Communitymanager
CommunitymanagerCommunitymanager
Communitymanager
Mizarvega
 
производство биомелиоранта
производство биомелиорантапроизводство биомелиоранта
производство биомелиоранта
kulibin
 
Nuevas tecnologías de la
Nuevas tecnologías de laNuevas tecnologías de la
Nuevas tecnologías de la
Michelle
 

Viewers also liked (20)

NLP meetup 2016.10.05 - Szekeres Péter: Neticle
NLP meetup 2016.10.05 - Szekeres Péter: NeticleNLP meetup 2016.10.05 - Szekeres Péter: Neticle
NLP meetup 2016.10.05 - Szekeres Péter: Neticle
 
Универсальный энергосберегающий режущий аппарат
Универсальный энергосберегающий режущий аппаратУниверсальный энергосберегающий режущий аппарат
Универсальный энергосберегающий режущий аппарат
 
EVALUATION QUESTION: 05
EVALUATION QUESTION: 05EVALUATION QUESTION: 05
EVALUATION QUESTION: 05
 
Ux paper prototyping
Ux paper prototypingUx paper prototyping
Ux paper prototyping
 
Philadelphia Best Places to Work Roadshow | OpenTable
Philadelphia Best Places to Work Roadshow | OpenTablePhiladelphia Best Places to Work Roadshow | OpenTable
Philadelphia Best Places to Work Roadshow | OpenTable
 
Daily Newsletter: 16th December, 2010
Daily Newsletter: 16th December, 2010Daily Newsletter: 16th December, 2010
Daily Newsletter: 16th December, 2010
 
Wykładzina vol. 14 Teatr Narodowy Opera Narodowa
Wykładzina vol. 14 Teatr Narodowy Opera NarodowaWykładzina vol. 14 Teatr Narodowy Opera Narodowa
Wykładzina vol. 14 Teatr Narodowy Opera Narodowa
 
Impacto de las tic en la educacion karen
Impacto de las tic en la educacion karenImpacto de las tic en la educacion karen
Impacto de las tic en la educacion karen
 
Communitymanager
CommunitymanagerCommunitymanager
Communitymanager
 
PromoHolding - informacje
PromoHolding - informacjePromoHolding - informacje
PromoHolding - informacje
 
Osaaminen uuden yrityksen johtajan näkökulmasta
Osaaminen uuden yrityksen johtajan näkökulmastaOsaaminen uuden yrityksen johtajan näkökulmasta
Osaaminen uuden yrityksen johtajan näkökulmasta
 
производство биомелиоранта
производство биомелиорантапроизводство биомелиоранта
производство биомелиоранта
 
Nuevas tecnologías de la
Nuevas tecnologías de laNuevas tecnologías de la
Nuevas tecnologías de la
 
Chef training - Day1
Chef training - Day1Chef training - Day1
Chef training - Day1
 
Some Notes On "Inclusion" - Pat Kane for Creative Scotland
Some Notes On "Inclusion" - Pat Kane for Creative ScotlandSome Notes On "Inclusion" - Pat Kane for Creative Scotland
Some Notes On "Inclusion" - Pat Kane for Creative Scotland
 
Chef training - Day3
Chef training - Day3Chef training - Day3
Chef training - Day3
 
Customer service communities
Customer service communitiesCustomer service communities
Customer service communities
 
TERCERO D
TERCERO DTERCERO D
TERCERO D
 
קורס מגיק למפתחים
קורס מגיק למפתחיםקורס מגיק למפתחים
קורס מגיק למפתחים
 
Chef training - Day2
Chef training - Day2Chef training - Day2
Chef training - Day2
 

Similar to Seattle OpenStack Meetup

SELF 2011: Deploying Django Application Stacks with Chef
SELF 2011: Deploying Django Application Stacks with ChefSELF 2011: Deploying Django Application Stacks with Chef
SELF 2011: Deploying Django Application Stacks with Chef
Chef Software, Inc.
 
Cloud Deployments with Apache Hadoop and Apache HBase
Cloud Deployments with Apache Hadoop and Apache HBaseCloud Deployments with Apache Hadoop and Apache HBase
Cloud Deployments with Apache Hadoop and Apache HBase
DATAVERSITY
 
Chef + AWS + CodeIgniter
Chef + AWS + CodeIgniterChef + AWS + CodeIgniter
Chef + AWS + CodeIgniter
ciconf
 
Sneak Peek of Nuxeo 5.4
Sneak Peek of Nuxeo 5.4Sneak Peek of Nuxeo 5.4
Sneak Peek of Nuxeo 5.4
Nuxeo
 

Similar to Seattle OpenStack Meetup (20)

Velocity 2011 Chef OpenStack Workshop
Velocity 2011 Chef OpenStack WorkshopVelocity 2011 Chef OpenStack Workshop
Velocity 2011 Chef OpenStack Workshop
 
Introduction to Solr
Introduction to SolrIntroduction to Solr
Introduction to Solr
 
Velocity2011 chef-workshop
Velocity2011 chef-workshopVelocity2011 chef-workshop
Velocity2011 chef-workshop
 
Apache Rave (Incubating) at ROLE Developer Camp
Apache Rave (Incubating) at ROLE Developer CampApache Rave (Incubating) at ROLE Developer Camp
Apache Rave (Incubating) at ROLE Developer Camp
 
SELF 2011: Deploying Django Application Stacks with Chef
SELF 2011: Deploying Django Application Stacks with ChefSELF 2011: Deploying Django Application Stacks with Chef
SELF 2011: Deploying Django Application Stacks with Chef
 
Workflow Engines for Hadoop
Workflow Engines for HadoopWorkflow Engines for Hadoop
Workflow Engines for Hadoop
 
Docker, Atomic Host and Kubernetes.
Docker, Atomic Host and Kubernetes.Docker, Atomic Host and Kubernetes.
Docker, Atomic Host and Kubernetes.
 
Securing Docker Containers via Osquery and Kubernetes
Securing Docker Containers via Osquery and KubernetesSecuring Docker Containers via Osquery and Kubernetes
Securing Docker Containers via Osquery and Kubernetes
 
Cloud Deployments with Apache Hadoop and Apache HBase
Cloud Deployments with Apache Hadoop and Apache HBaseCloud Deployments with Apache Hadoop and Apache HBase
Cloud Deployments with Apache Hadoop and Apache HBase
 
Java EE | Apache TomEE - Java EE Web Profile on Tomcat | Jonathan Gallimore
Java EE | Apache TomEE - Java EE Web Profile on Tomcat | Jonathan GallimoreJava EE | Apache TomEE - Java EE Web Profile on Tomcat | Jonathan Gallimore
Java EE | Apache TomEE - Java EE Web Profile on Tomcat | Jonathan Gallimore
 
DevOps Introduction @Cegeka
DevOps Introduction @CegekaDevOps Introduction @Cegeka
DevOps Introduction @Cegeka
 
Deploying on the cutting edge
Deploying on the cutting edgeDeploying on the cutting edge
Deploying on the cutting edge
 
Taking Spinnaker for a spin @ London DevOps Meetup 36
Taking Spinnaker for a spin @ London DevOps Meetup 36Taking Spinnaker for a spin @ London DevOps Meetup 36
Taking Spinnaker for a spin @ London DevOps Meetup 36
 
RunDeck
RunDeckRunDeck
RunDeck
 
Chef + AWS + CodeIgniter
Chef + AWS + CodeIgniterChef + AWS + CodeIgniter
Chef + AWS + CodeIgniter
 
Picconf12
Picconf12Picconf12
Picconf12
 
Hadoop at Nokia
Hadoop at NokiaHadoop at Nokia
Hadoop at Nokia
 
The Grand Puppet Sub-Systems Tour - Nicholas Fagerlund, Puppet Labs
The Grand Puppet Sub-Systems Tour - Nicholas Fagerlund, Puppet LabsThe Grand Puppet Sub-Systems Tour - Nicholas Fagerlund, Puppet Labs
The Grand Puppet Sub-Systems Tour - Nicholas Fagerlund, Puppet Labs
 
Sneak Peek of Nuxeo 5.4
Sneak Peek of Nuxeo 5.4Sneak Peek of Nuxeo 5.4
Sneak Peek of Nuxeo 5.4
 
No Docker? No Problem: Automating installation and config with Ansible
No Docker? No Problem: Automating installation and config with AnsibleNo Docker? No Problem: Automating installation and config with Ansible
No Docker? No Problem: Automating installation and config with Ansible
 

More from Matt Ray

More from Matt Ray (20)

Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
 
SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...
SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...
SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...
 
HashiTalks 2020 - Chef Tools & Terraform: Better Together
HashiTalks 2020 - Chef Tools & Terraform: Better TogetherHashiTalks 2020 - Chef Tools & Terraform: Better Together
HashiTalks 2020 - Chef Tools & Terraform: Better Together
 
EmacsConf 2019: Interactive Remote Debugging and Development with TRAMP Mode
EmacsConf 2019: Interactive Remote Debugging and Development with TRAMP ModeEmacsConf 2019: Interactive Remote Debugging and Development with TRAMP Mode
EmacsConf 2019: Interactive Remote Debugging and Development with TRAMP Mode
 
Wellington DevOps: Bringing Your Applications into the Future with Habitat
Wellington DevOps: Bringing Your Applications into the Future with HabitatWellington DevOps: Bringing Your Applications into the Future with Habitat
Wellington DevOps: Bringing Your Applications into the Future with Habitat
 
DevOps Days Singapore 2018 Ignite - Bringing Your Applications into the Futur...
DevOps Days Singapore 2018 Ignite - Bringing Your Applications into the Futur...DevOps Days Singapore 2018 Ignite - Bringing Your Applications into the Futur...
DevOps Days Singapore 2018 Ignite - Bringing Your Applications into the Futur...
 
Cloud Expo Asia 20181010 - Bringing Your Applications into the Future with Ha...
Cloud Expo Asia 20181010 - Bringing Your Applications into the Future with Ha...Cloud Expo Asia 20181010 - Bringing Your Applications into the Future with Ha...
Cloud Expo Asia 20181010 - Bringing Your Applications into the Future with Ha...
 
Compliance as Code Everywhere
Compliance as Code EverywhereCompliance as Code Everywhere
Compliance as Code Everywhere
 
DevOpsDays Jakarta: State of DevOps 2018
DevOpsDays Jakarta: State of DevOps 2018DevOpsDays Jakarta: State of DevOps 2018
DevOpsDays Jakarta: State of DevOps 2018
 
DevOps Talks Melbourne 2018: Whales, Cats and Kubernetes
DevOps Talks Melbourne 2018: Whales, Cats and KubernetesDevOps Talks Melbourne 2018: Whales, Cats and Kubernetes
DevOps Talks Melbourne 2018: Whales, Cats and Kubernetes
 
Infrastructure and Compliance Delight with Chef Automate
Infrastructure and Compliance Delight with Chef AutomateInfrastructure and Compliance Delight with Chef Automate
Infrastructure and Compliance Delight with Chef Automate
 
Cooking Up Windows with Chef Automate
Cooking Up Windows with Chef AutomateCooking Up Windows with Chef Automate
Cooking Up Windows with Chef Automate
 
DevOpsDays Singapore - Continuous Auditing with Compliance as Code
DevOpsDays Singapore - Continuous Auditing with Compliance as CodeDevOpsDays Singapore - Continuous Auditing with Compliance as Code
DevOpsDays Singapore - Continuous Auditing with Compliance as Code
 
DevOpsDays Singapore Habitat Ignite
DevOpsDays Singapore Habitat IgniteDevOpsDays Singapore Habitat Ignite
DevOpsDays Singapore Habitat Ignite
 
Chef Automate - Azure Sydney User Group
Chef Automate - Azure Sydney User GroupChef Automate - Azure Sydney User Group
Chef Automate - Azure Sydney User Group
 
Automating Compliance with InSpec - AWS North Sydney
Automating Compliance with InSpec - AWS North SydneyAutomating Compliance with InSpec - AWS North Sydney
Automating Compliance with InSpec - AWS North Sydney
 
Automating Applications with Habitat - Sydney Cloud Native Meetup
Automating Applications with Habitat - Sydney Cloud Native MeetupAutomating Applications with Habitat - Sydney Cloud Native Meetup
Automating Applications with Habitat - Sydney Cloud Native Meetup
 
Automating AWS Compliance with InSpec
Automating AWS Compliance with InSpec Automating AWS Compliance with InSpec
Automating AWS Compliance with InSpec
 
Chef Automate - Infracoders Canberra August 8, 2017
Chef Automate - Infracoders Canberra August 8, 2017Chef Automate - Infracoders Canberra August 8, 2017
Chef Automate - Infracoders Canberra August 8, 2017
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

Seattle OpenStack Meetup

  • 1. Deploying OpenStack with Opscode Chef sarah@opscode.com www.opscode.com Thursday, October 20, 2011
  • 2. Who am I? • Sarah Novotny • Senior Field Architect • Opscode, Inc. !"#$#%&'$ • @sarahnovotny ()#)*$ • irc: senk +),*-./$ Thursday, October 20, 2011
  • 3. Deploying OpenStack is not simple. Thursday, October 20, 2011
  • 4. Chef makes it easier. Thursday, October 20, 2011
  • 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. Configuration Management Thursday, October 20, 2011
  • 8. System Integration http://www.flickr.com/photos/opalsson/3773629074/ Thursday, October 20, 2011
  • 10. The Chef Framework • Reasonability • Flexibility • Library & Primitives • TIMTOWTDI Thursday, October 20, 2011
  • 11. The Chef Tool(s) • ohai • chef-client • knife • shef Thursday, October 20, 2011
  • 12. The Chef API • Client/Server • RESTful API w/ JSON • Search Service Thursday, October 20, 2011
  • 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. • Searchable Thursday, October 20, 2011
  • 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 end Thursday, October 20, 2011
  • 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 end Thursday, October 20, 2011
  • 16. Chef Cookbooks • Cookbooks are packages for Recipes • Recipes • Assets (files/templates) • Attributes • Metadata • Distributable and managed as Source • community.opscode.com Thursday, October 20, 2011
  • 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. Chef Data Bags • Data bags store arbitrary data • JSON • Searchable Thursday, October 20, 2011
  • 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.com Thursday, October 20, 2011
  • 20. openstack-cookbooks Resources Thursday, October 20, 2011
  • 21. github.com/opscode/openstack-chef-repo • Chef repository • cookbooks • roles • data bags • diablo & essex milestones • issues Thursday, October 20, 2011
  • 22. OpenStack Cookbooks • Included • glance • nova • swift • Future • dashboard • keystone Thursday, October 20, 2011
  • 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 conference Thursday, October 20, 2011
  • 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.04 Thursday, October 20, 2011
  • 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 & documented Thursday, October 20, 2011
  • 27. Spiceweasel • yaml/json for describing infrastructure • generates knife commands • shareable "best practices" • infrastructure.yml included • bit.ly/spcwsl Thursday, October 20, 2011
  • 28. Testing OpenStack • bare-metal to OpenStack • ~15 minutes • pxe_dust cookbook • 2 networks • admin • public Thursday, October 20, 2011
  • 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/ crowbar Thursday, October 20, 2011
  • 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. 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. knife openstack server create -S mykey -x ubuntu -I ami-4b0ff834 -f m1.tiny -r 'role[webserver]' Thursday, October 20, 2011
  • 34. What's Next? http://www.flickr.com/photos/felixmorgner/4347750467/ Thursday, October 20, 2011
  • 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, Drizzle Thursday, October 20, 2011
  • 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. OpenStack Roadmap • Diablo release (RCB patches) • Reference Architectures • Essex milestones (RCB patches) • More collaborators • RHEL 6 & Fedora • Windows Thursday, October 20, 2011
  • 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.com Thursday, October 20, 2011
  • 39. Questions? http://www.flickr.com/photos/mrchippy/443960682/ Thursday, October 20, 2011
  • 40. Thanks! http://www.opscode.com Thursday, October 20, 2011