SlideShare uma empresa Scribd logo
1 de 20
Managing Your VMware Infrastructure with Chef
An intro to Chef and the various tools you can use to administer your VMware environment
Yvo van Doorn
Opscode, Inc.
A quick agenda
• Quick overview of Chef (some basic lingo & concepts)
• Integration points
• Demo of vagrant & VMware Fusion
• Demo of knife-vsphere & VMware vCenter
• Q&A
Chef – A quick introduction
Chef – A quick overview
• Chef is an Configuration Management Tool
• Think Chef as Infrastructure as Code
• Chef‟s server is completely API driven.
• Uses an utility called „knife‟ on a workstation to talk to the Chef server
• Chef client is written in Ruby, but you do not need to learn Ruby to use Chef.
• Chef supports Linux variants, Unix variants and Windows, all as first class citizens.
• Comes in two flavors: Open source & Enterprise Chef.
Chef – Lets break down the terms: Resource
• A resource is a definition of an action that can be taken.
• Example would be the installation of a package or maintaining a configuration file.
• The chef-client will parse every resource and associate them with a provider.
• Example: Yum provider is used during the installation of a package on a CentOS / Red Hat host or enabling /
installing IIS on a Windows Server
On Linux based OSes: On Windows based OSes:
Chef – Lets break down the terms: Recipe
• A recipe is a collection of resources.
• Each resource is executed in the order they are listed.
• Chef client does not get opinionated. It depends on the user (you) to know in what order things should be put down.
• A basic recipe would consist of the package, template, and service resources
On Linux based OSes:
On Windows based OSes:
Chef – Lets break down the terms: Cookbook
• A cookbook is a set of recipes.
• A cookbook is a defined set of items and different outcomes that you expect to address
• A cookbook could have a recipe to install apache2/httpd but also another set of recipe to activate modules required.
• The „default‟ recipe will be run when no specific recipe is specified.
Chef – Workstation / Node / Server
• Workstation
• A host that has a copy of the chef environment setup
• Often your personal workstation you are working from
• A workstation can be a Linux, Mac or Windows based host, we don‟t care.
• Uses a management tool called „knife‟ which talks to Chef APIs over HTTPS
• Knife can (and should) be extended to provide additional functionality
• This is where a lot of our integration story will take place
• Server
• Hosts the cookbooks, attributes, search data, node data, and user information for your organization.
• Very scalable. The server is a repository of your cookbooks, but the actual work is done on the node
• Node
• The end point, whether it is bare metal, ec2 or a VMware virtual machine instance, is something running the „chef-client‟.
Putting it all together…
Open Source Chef server
• Full single “org” Chef server
• Same API & client as Enterprise Chef
• Search based capabilities
• Absolutely free & code is available on github
Enterprise Chef
• Both offered as a hosted by Opscode solution
and on premise / in your own datacenter
solution.
• Hosted Enterprise Chef comes with 5 free
nodes (0 billing information required)
• Fastest way to get started with Chef. All you do is set
up your workstation and bootstrap your first instance.
• Enterprise Chef features
• multi tenancy support
• role based access (including integration into Active
Directory)
• Soon: pushy & reporting
Two flavors of Chef Server
So where does VMware fit into this?
4 integration points for Chef with VMware
VMware Fusion / VMware Workstation
VMware ESXi
VMware vCenter
VMware vCloud Director
Vagrant Plugin
knife-esx
knife-vsphere
knife-vcloud
VMware Fusion / Workstation & Vagrant
• Vagrant is a tool used to quickly spin up & down new development environments, locally, on your
workstation or laptop.
• Used for development to test automation or deployments of new software, or in Chef‟s case:
cookbooks.
• The vagrant plugin for Vmware Fusion/Workstation is an pay for add on for the free vagrant
(http://www.vagrantup.com)
VMWare ESXi & knife-esxi
• Interacts with your solo, or non managed ESXi host.
• Uses knife & fog to interact with APIs presented on the ESXi host.
• Can list, delete and clone VMs on a single ESXi host.
• Installs (bootstraps) Chef & makes it part of a chef server and, additionally, can be configured to add
the new node to specific environments and/or roles on your Chef server.
• Community maintained & under active development @ https://github.com/maintux/knife-esx
VMWare vSphere & knife-vsphere
• Integrates with your existing vSphere vCenter installation
• Uses knife & fog to interact with the vSphere API.
• Can list, clone, delete, snapshot VMs via knife
• Can also list datastores, resource pools and clusters.
• Can also execute commands on running VMs
• When cloning a VM, can interact with a customization specs to customize vCPUs, vRAM, IPs,
hostname, etc at VM creation.
• Requires a VM template that can be customized like Ubuntu, Red Hat or Windows.
• Hint: when using CentOS, set the OS type to Red Hat not CentOS to take advantage of this!
• Community maintained & under active development @ https://github.com/ezrapagel/knife-vsphere
VMWare vCloud Director & knife-vcloud
• Integrates with your vCloud Director installation
• Uses knife & fog to interact with the APIs presented by vCloud Director
• Like knife-vsphere, can list, add, delete VMs through knife
• In addition to knife-vsphere, can also deploy vApps.
• Maintained by Opscode but seeking more community contributions @
https://github.com/opscode/knife-vcloud
Advantages when using Chef in a VMware environment
• No more golden images. Don’t simply brush this off, think about it….
• Maintain a VMware template that is “just enough OS”.
• Use Chef‟s bootstrapping through various integration points to install Chef & configure the node as you specified in
the command.
• Instead of managing snapshot chains of a VM, you update the Chef recipe, create a new VM and delete the old.
• Your VMs are no longer special snow flakes, they are objects that are defined from the Chef cookbooks you‟ve
written.
• Knife uses APIs to communicate with your ESXi/vCenter/vCloud host.
Demo: Vagrant & VMware Fusion
Demo: knife-vsphere & VMware vCenter
Opscode Webinar: Managing Your VMware Infrastructure with Chef

Mais conteúdo relacionado

Mais procurados

Environments - Fundamentals Webinar Series Week 5
Environments - Fundamentals Webinar Series Week 5Environments - Fundamentals Webinar Series Week 5
Environments - Fundamentals Webinar Series Week 5
Chef
 

Mais procurados (20)

Chef-Zero & Local Mode
Chef-Zero & Local ModeChef-Zero & Local Mode
Chef-Zero & Local Mode
 
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
Introduction to Chef: Automate Your Infrastructure by Modeling It In CodeIntroduction to Chef: Automate Your Infrastructure by Modeling It In Code
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
 
Automating Infrastructure with Chef
Automating Infrastructure with ChefAutomating Infrastructure with Chef
Automating Infrastructure with Chef
 
Node setup, resource, and recipes - Fundamentals Webinar Series Part 2
Node setup, resource, and recipes - Fundamentals Webinar Series Part 2Node setup, resource, and recipes - Fundamentals Webinar Series Part 2
Node setup, resource, and recipes - Fundamentals Webinar Series Part 2
 
Node object and roles - Fundamentals Webinar Series Part 3
Node object and roles - Fundamentals Webinar Series Part 3Node object and roles - Fundamentals Webinar Series Part 3
Node object and roles - Fundamentals Webinar Series Part 3
 
Community Cookbooks & further resources - Fundamentals Webinar Series Part 6
Community Cookbooks & further resources - Fundamentals Webinar Series Part 6Community Cookbooks & further resources - Fundamentals Webinar Series Part 6
Community Cookbooks & further resources - Fundamentals Webinar Series Part 6
 
Velocity2011 chef-workshop
Velocity2011 chef-workshopVelocity2011 chef-workshop
Velocity2011 chef-workshop
 
Environments - Fundamentals Webinar Series Week 5
Environments - Fundamentals Webinar Series Week 5Environments - Fundamentals Webinar Series Week 5
Environments - Fundamentals Webinar Series Week 5
 
Chef, Devops, and You
Chef, Devops, and YouChef, Devops, and You
Chef, Devops, and You
 
Infrastructure Automation with Chef
Infrastructure Automation with ChefInfrastructure Automation with Chef
Infrastructure Automation with Chef
 
Chef introduction
Chef introductionChef introduction
Chef introduction
 
Chef Tutorial for DEVOPS Newbies
Chef Tutorial for DEVOPS NewbiesChef Tutorial for DEVOPS Newbies
Chef Tutorial for DEVOPS Newbies
 
The unintended benefits of Chef
The unintended benefits of ChefThe unintended benefits of Chef
The unintended benefits of Chef
 
Server Installation and Configuration with Chef
Server Installation and Configuration with ChefServer Installation and Configuration with Chef
Server Installation and Configuration with Chef
 
Introduction to chef
Introduction to chefIntroduction to chef
Introduction to chef
 
Automating your infrastructure with Chef
Automating your infrastructure with ChefAutomating your infrastructure with Chef
Automating your infrastructure with Chef
 
Chef ignited a DevOps revolution – BK Box
Chef ignited a DevOps revolution – BK BoxChef ignited a DevOps revolution – BK Box
Chef ignited a DevOps revolution – BK Box
 
Opscode tech festa july 2013
Opscode tech festa   july 2013Opscode tech festa   july 2013
Opscode tech festa july 2013
 
Chef fundamentals
Chef fundamentalsChef fundamentals
Chef fundamentals
 
Understand Chef
Understand ChefUnderstand Chef
Understand Chef
 

Destaque

Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2
Srikanth N
 

Destaque (10)

Dropbox connector Mule ESB Integration
Dropbox connector Mule ESB IntegrationDropbox connector Mule ESB Integration
Dropbox connector Mule ESB Integration
 
Tips and Tricks for Automating Windows with Chef
Tips and Tricks for Automating Windows with ChefTips and Tricks for Automating Windows with Chef
Tips and Tricks for Automating Windows with Chef
 
HTNG North America Conference 2015 - Micromarketing Building Blocks
HTNG North America Conference 2015 - Micromarketing Building BlocksHTNG North America Conference 2015 - Micromarketing Building Blocks
HTNG North America Conference 2015 - Micromarketing Building Blocks
 
Mule rabbit mq
Mule rabbit mqMule rabbit mq
Mule rabbit mq
 
Connecting the New Enterprise | MuleSoft
Connecting the New Enterprise | MuleSoftConnecting the New Enterprise | MuleSoft
Connecting the New Enterprise | MuleSoft
 
Mule ESB Training
Mule ESB TrainingMule ESB Training
Mule ESB Training
 
Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2
 
Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1
 
Mule ESB - Integration Simplified
Mule ESB - Integration SimplifiedMule ESB - Integration Simplified
Mule ESB - Integration Simplified
 
Application Architecture: The Next Wave | MuleSoft
Application Architecture: The Next Wave | MuleSoftApplication Architecture: The Next Wave | MuleSoft
Application Architecture: The Next Wave | MuleSoft
 

Semelhante a Opscode Webinar: Managing Your VMware Infrastructure with Chef

Avoiding surprises with Chef and Vagrant
Avoiding surprises with Chef and VagrantAvoiding surprises with Chef and Vagrant
Avoiding surprises with Chef and Vagrant
andygale
 
Vagrant Binding JayDay 2013
Vagrant Binding JayDay 2013Vagrant Binding JayDay 2013
Vagrant Binding JayDay 2013
Hendrik Ebbers
 
Chef for Openstack
Chef for OpenstackChef for Openstack
Chef for Openstack
Mohit Sethi
 
Managing Servers with Chef
Managing Servers with ChefManaging Servers with Chef
Managing Servers with Chef
Joe Kepley
 

Semelhante a Opscode Webinar: Managing Your VMware Infrastructure with Chef (20)

Chef: Smart infrastructure automation
Chef: Smart infrastructure automationChef: Smart infrastructure automation
Chef: Smart infrastructure automation
 
Avoiding surprises with Chef and Vagrant
Avoiding surprises with Chef and VagrantAvoiding surprises with Chef and Vagrant
Avoiding surprises with Chef and Vagrant
 
AWS OpsWorks for Chef Automate
AWS OpsWorks for Chef AutomateAWS OpsWorks for Chef Automate
AWS OpsWorks for Chef Automate
 
Vagrant Binding JayDay 2013
Vagrant Binding JayDay 2013Vagrant Binding JayDay 2013
Vagrant Binding JayDay 2013
 
Introduction to OpsWorks for Chef Automate
Introduction to OpsWorks for Chef AutomateIntroduction to OpsWorks for Chef Automate
Introduction to OpsWorks for Chef Automate
 
Chef, Vagrant and Friends
Chef, Vagrant and FriendsChef, Vagrant and Friends
Chef, Vagrant and Friends
 
Vagrant to-aws-flow
Vagrant to-aws-flowVagrant to-aws-flow
Vagrant to-aws-flow
 
Configuration Management in the Cloud - AWS Online Tech Talks
Configuration Management in the Cloud - AWS Online Tech TalksConfiguration Management in the Cloud - AWS Online Tech Talks
Configuration Management in the Cloud - AWS Online Tech Talks
 
Chef for Openstack
Chef for OpenstackChef for Openstack
Chef for Openstack
 
Chef for openstack
Chef for openstackChef for openstack
Chef for openstack
 
OpenStack and Windows
OpenStack and WindowsOpenStack and Windows
OpenStack and Windows
 
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
AWS re:Invent 2016: Configuration Management in the Cloud (DEV305)
 
Cloud Foundry: Hands-on Deployment Workshop
Cloud Foundry: Hands-on Deployment WorkshopCloud Foundry: Hands-on Deployment Workshop
Cloud Foundry: Hands-on Deployment Workshop
 
Chef Automate - Azure Sydney User Group
Chef Automate - Azure Sydney User GroupChef Automate - Azure Sydney User Group
Chef Automate - Azure Sydney User Group
 
Improved development workflows using vagrant
Improved development workflows using vagrantImproved development workflows using vagrant
Improved development workflows using vagrant
 
Open stack + Containers + Hyper-V
Open stack + Containers + Hyper-VOpen stack + Containers + Hyper-V
Open stack + Containers + Hyper-V
 
IBM InterConnect 2015 - IIB in the Cloud
IBM InterConnect 2015 - IIB in the CloudIBM InterConnect 2015 - IIB in the Cloud
IBM InterConnect 2015 - IIB in the Cloud
 
How bigtop leveraged docker for build automation and one click hadoop provis...
How bigtop leveraged docker for build automation and  one click hadoop provis...How bigtop leveraged docker for build automation and  one click hadoop provis...
How bigtop leveraged docker for build automation and one click hadoop provis...
 
Dockerize your Symfony application - Symfony Live NYC 2014
Dockerize your Symfony application - Symfony Live NYC 2014Dockerize your Symfony application - Symfony Live NYC 2014
Dockerize your Symfony application - Symfony Live NYC 2014
 
Managing Servers with Chef
Managing Servers with ChefManaging Servers with Chef
Managing Servers with Chef
 

Mais de Chef Software, Inc.

Opscode Webinar: Automation for Education May 08-2013
Opscode Webinar: Automation for Education May 08-2013Opscode Webinar: Automation for Education May 08-2013
Opscode Webinar: Automation for Education May 08-2013
Chef Software, Inc.
 
Utility HPC: Right Systems, Right Scale, Right Science
Utility HPC: Right Systems, Right Scale, Right ScienceUtility HPC: Right Systems, Right Scale, Right Science
Utility HPC: Right Systems, Right Scale, Right Science
Chef Software, Inc.
 

Mais de Chef Software, Inc. (20)

Opscode Webinar: Cooking with Chef on Microsoft Windows
Opscode Webinar: Cooking with Chef on Microsoft WindowsOpscode Webinar: Cooking with Chef on Microsoft Windows
Opscode Webinar: Cooking with Chef on Microsoft Windows
 
Opscode Webinar: Automation for Education May 08-2013
Opscode Webinar: Automation for Education May 08-2013Opscode Webinar: Automation for Education May 08-2013
Opscode Webinar: Automation for Education May 08-2013
 
Utility HPC: Right Systems, Right Scale, Right Science
Utility HPC: Right Systems, Right Scale, Right ScienceUtility HPC: Right Systems, Right Scale, Right Science
Utility HPC: Right Systems, Right Scale, Right Science
 
The Berkshelf Way
The Berkshelf WayThe Berkshelf Way
The Berkshelf Way
 
Using Kanban and Chef: A Case Study – Jeffrey Hulten
Using Kanban and Chef: A Case Study – Jeffrey HultenUsing Kanban and Chef: A Case Study – Jeffrey Hulten
Using Kanban and Chef: A Case Study – Jeffrey Hulten
 
SDN, Network Virtualization and the Software Defined Data Center – Brad Hedlund
SDN, Network Virtualization and the Software Defined Data Center – Brad HedlundSDN, Network Virtualization and the Software Defined Data Center – Brad Hedlund
SDN, Network Virtualization and the Software Defined Data Center – Brad Hedlund
 
ChefConf 2013 Keynote Session – Opscode – Adam Jacob
ChefConf 2013 Keynote Session – Opscode – Adam JacobChefConf 2013 Keynote Session – Opscode – Adam Jacob
ChefConf 2013 Keynote Session – Opscode – Adam Jacob
 
Using Chef and AppFirst to Automate Scale-out/Scale-down of Web Applications ...
Using Chef and AppFirst to Automate Scale-out/Scale-down of Web Applications ...Using Chef and AppFirst to Automate Scale-out/Scale-down of Web Applications ...
Using Chef and AppFirst to Automate Scale-out/Scale-down of Web Applications ...
 
The InstallShield of the 21st Century – Theo Schlossnagle
The InstallShield of the 21st Century – Theo SchlossnagleThe InstallShield of the 21st Century – Theo Schlossnagle
The InstallShield of the 21st Century – Theo Schlossnagle
 
Push jobs: an orchestration building block for private Chef
Push jobs: an orchestration building block for private ChefPush jobs: an orchestration building block for private Chef
Push jobs: an orchestration building block for private Chef
 
Multi-provider Vagrant and Chef: AWS, VMware, and more
Multi-provider Vagrant and Chef: AWS, VMware, and moreMulti-provider Vagrant and Chef: AWS, VMware, and more
Multi-provider Vagrant and Chef: AWS, VMware, and more
 
Welcome to the IT Industrial Revolution! Are you ready?
Welcome to the IT Industrial Revolution! Are you ready?Welcome to the IT Industrial Revolution! Are you ready?
Welcome to the IT Industrial Revolution! Are you ready?
 
Who Says Elephants Can’t Cook? How IBM and Opscode are changing the role of c...
Who Says Elephants Can’t Cook? How IBM and Opscode are changing the role of c...Who Says Elephants Can’t Cook? How IBM and Opscode are changing the role of c...
Who Says Elephants Can’t Cook? How IBM and Opscode are changing the role of c...
 
Growing Pains with Chef – a Tale of DevOps in a Large Organization
Growing Pains with Chef – a Tale of DevOps in a Large OrganizationGrowing Pains with Chef – a Tale of DevOps in a Large Organization
Growing Pains with Chef – a Tale of DevOps in a Large Organization
 
Cookbook refactoring & abstracting logic to Ruby(gems)
Cookbook refactoring & abstracting logic to Ruby(gems)Cookbook refactoring & abstracting logic to Ruby(gems)
Cookbook refactoring & abstracting logic to Ruby(gems)
 
Creating a culture for Continuous Delivery
Creating a culture for Continuous DeliveryCreating a culture for Continuous Delivery
Creating a culture for Continuous Delivery
 
Cookin’ up Hybrid Clouds: Chef and the Accenture Cloud Platform
Cookin’ up Hybrid Clouds: Chef and the Accenture Cloud PlatformCookin’ up Hybrid Clouds: Chef and the Accenture Cloud Platform
Cookin’ up Hybrid Clouds: Chef and the Accenture Cloud Platform
 
Exploiting Conway’s Law for Underpants and Profit
 Exploiting Conway’s Law for Underpants and Profit Exploiting Conway’s Law for Underpants and Profit
Exploiting Conway’s Law for Underpants and Profit
 
Configuration management and #monitoringlove
Configuration management and #monitoringloveConfiguration management and #monitoringlove
Configuration management and #monitoringlove
 
Working with Chef on Windows and Windows Azure
Working with Chef on Windows and Windows AzureWorking with Chef on Windows and Windows Azure
Working with Chef on Windows and Windows Azure
 

Último

Último (20)

Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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...
 
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
 
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
 

Opscode Webinar: Managing Your VMware Infrastructure with Chef

  • 1. Managing Your VMware Infrastructure with Chef An intro to Chef and the various tools you can use to administer your VMware environment Yvo van Doorn Opscode, Inc.
  • 2. A quick agenda • Quick overview of Chef (some basic lingo & concepts) • Integration points • Demo of vagrant & VMware Fusion • Demo of knife-vsphere & VMware vCenter • Q&A
  • 3. Chef – A quick introduction
  • 4. Chef – A quick overview • Chef is an Configuration Management Tool • Think Chef as Infrastructure as Code • Chef‟s server is completely API driven. • Uses an utility called „knife‟ on a workstation to talk to the Chef server • Chef client is written in Ruby, but you do not need to learn Ruby to use Chef. • Chef supports Linux variants, Unix variants and Windows, all as first class citizens. • Comes in two flavors: Open source & Enterprise Chef.
  • 5. Chef – Lets break down the terms: Resource • A resource is a definition of an action that can be taken. • Example would be the installation of a package or maintaining a configuration file. • The chef-client will parse every resource and associate them with a provider. • Example: Yum provider is used during the installation of a package on a CentOS / Red Hat host or enabling / installing IIS on a Windows Server On Linux based OSes: On Windows based OSes:
  • 6. Chef – Lets break down the terms: Recipe • A recipe is a collection of resources. • Each resource is executed in the order they are listed. • Chef client does not get opinionated. It depends on the user (you) to know in what order things should be put down. • A basic recipe would consist of the package, template, and service resources On Linux based OSes: On Windows based OSes:
  • 7. Chef – Lets break down the terms: Cookbook • A cookbook is a set of recipes. • A cookbook is a defined set of items and different outcomes that you expect to address • A cookbook could have a recipe to install apache2/httpd but also another set of recipe to activate modules required. • The „default‟ recipe will be run when no specific recipe is specified.
  • 8. Chef – Workstation / Node / Server • Workstation • A host that has a copy of the chef environment setup • Often your personal workstation you are working from • A workstation can be a Linux, Mac or Windows based host, we don‟t care. • Uses a management tool called „knife‟ which talks to Chef APIs over HTTPS • Knife can (and should) be extended to provide additional functionality • This is where a lot of our integration story will take place • Server • Hosts the cookbooks, attributes, search data, node data, and user information for your organization. • Very scalable. The server is a repository of your cookbooks, but the actual work is done on the node • Node • The end point, whether it is bare metal, ec2 or a VMware virtual machine instance, is something running the „chef-client‟.
  • 9. Putting it all together…
  • 10. Open Source Chef server • Full single “org” Chef server • Same API & client as Enterprise Chef • Search based capabilities • Absolutely free & code is available on github Enterprise Chef • Both offered as a hosted by Opscode solution and on premise / in your own datacenter solution. • Hosted Enterprise Chef comes with 5 free nodes (0 billing information required) • Fastest way to get started with Chef. All you do is set up your workstation and bootstrap your first instance. • Enterprise Chef features • multi tenancy support • role based access (including integration into Active Directory) • Soon: pushy & reporting Two flavors of Chef Server
  • 11. So where does VMware fit into this?
  • 12. 4 integration points for Chef with VMware VMware Fusion / VMware Workstation VMware ESXi VMware vCenter VMware vCloud Director Vagrant Plugin knife-esx knife-vsphere knife-vcloud
  • 13. VMware Fusion / Workstation & Vagrant • Vagrant is a tool used to quickly spin up & down new development environments, locally, on your workstation or laptop. • Used for development to test automation or deployments of new software, or in Chef‟s case: cookbooks. • The vagrant plugin for Vmware Fusion/Workstation is an pay for add on for the free vagrant (http://www.vagrantup.com)
  • 14. VMWare ESXi & knife-esxi • Interacts with your solo, or non managed ESXi host. • Uses knife & fog to interact with APIs presented on the ESXi host. • Can list, delete and clone VMs on a single ESXi host. • Installs (bootstraps) Chef & makes it part of a chef server and, additionally, can be configured to add the new node to specific environments and/or roles on your Chef server. • Community maintained & under active development @ https://github.com/maintux/knife-esx
  • 15. VMWare vSphere & knife-vsphere • Integrates with your existing vSphere vCenter installation • Uses knife & fog to interact with the vSphere API. • Can list, clone, delete, snapshot VMs via knife • Can also list datastores, resource pools and clusters. • Can also execute commands on running VMs • When cloning a VM, can interact with a customization specs to customize vCPUs, vRAM, IPs, hostname, etc at VM creation. • Requires a VM template that can be customized like Ubuntu, Red Hat or Windows. • Hint: when using CentOS, set the OS type to Red Hat not CentOS to take advantage of this! • Community maintained & under active development @ https://github.com/ezrapagel/knife-vsphere
  • 16. VMWare vCloud Director & knife-vcloud • Integrates with your vCloud Director installation • Uses knife & fog to interact with the APIs presented by vCloud Director • Like knife-vsphere, can list, add, delete VMs through knife • In addition to knife-vsphere, can also deploy vApps. • Maintained by Opscode but seeking more community contributions @ https://github.com/opscode/knife-vcloud
  • 17. Advantages when using Chef in a VMware environment • No more golden images. Don’t simply brush this off, think about it…. • Maintain a VMware template that is “just enough OS”. • Use Chef‟s bootstrapping through various integration points to install Chef & configure the node as you specified in the command. • Instead of managing snapshot chains of a VM, you update the Chef recipe, create a new VM and delete the old. • Your VMs are no longer special snow flakes, they are objects that are defined from the Chef cookbooks you‟ve written. • Knife uses APIs to communicate with your ESXi/vCenter/vCloud host.
  • 18. Demo: Vagrant & VMware Fusion
  • 19. Demo: knife-vsphere & VMware vCenter