SlideShare une entreprise Scribd logo
1  sur  49
WHO AM I
WHO ARE YOU?
WHO ARE YOU?
A Newbie to IT?
Developer?
Tester?
System Administrator?
“Business” People?
DebOps
Why DebOps?
Debit Ops from your Infrastructure to make NoOps Infrastructure.
Challenges
• Complex to Manage
• Extra long time required for a change
• Risky Rollbacks
• Anti Agnostic
• High Maintenance
Why DebOps Adoption ?
• Stable/Reliable operating environments
• Infrastructure is maintained as code
• Infrastructure Versioning
• Self Healing Capability
• Early detection and faster correction
• Less Time to Market
• Auditable
• Proactive
WHAT IS CHEF?
30,000ft View?
• Chef Design
Chef can also Stand Alone
Code Test and Release locally with Chef Solo
Why Chef ?
• Infrastructure as a Code
• Self Healing Capability
• Idempotent
• Lightweight
• Resilient Infrastructure
• Auditable
Why Chef?
• Infra as a Code
• Version Controlled
• Idempotent
• TMTOWDI
• Push Me
• Pull Me
Let’s Hangout with Chef!
Chef-Client is always with you
Chef Node
Any Server/VM which is managed and controlled by Chef is a Chef
Node
What makes your server a Chef Node?
• Chef-Client installed
• Bootstrapped(Registered) with Chef Server
• Runlist Attached
Node Attributes
• Node specific properties are called as Node Attributes
• It can be provided in a form of Array, Hash, or as a single variable.
• Attributes can be passed from attribute file, roles, environment,
runlist
• Attributes works on priority basis.
Attributes Priority
Know Your Cookbook
Cookbook Contents
• Metadata.rb
• Recipes
• Attributes
• Files
• Templates
• Resources
• Providers
Can you Imagine Chef without Knife ?
KNIFE
C - Create
R - Read
U - Update
D - Delete
D - Download
S - Search
Chef Essentials
Chef Development Kit (DK)
• Chef Development Kit
• Why DK with Knife?
• We need few more tools to build a better Cookbook
• CRUDDS… Am I missing anything?
• Cookbook Dependency Management
• A warning tool, if recipe is not healthy – Foodcritic
• Gem bar
• Push Jobs
WYW|WYR
Attributes
• I am used to supply what is required by a cookbook
• Yes I have priorities
• You can stamp me from cookbook, roles, environments, Runlist
Template(Configuration as a Code)
• Program your Configuration files
• I can fetch your attributes from anywhere
• I understand your if else for…
Template
Files
• Use me to dump your as is files
• I am used to provide your pre baked resources
Data Bags
• I am a special attribute
• Node Independent
• Priority Independent
• Available for All
• I am available as a global/environment variables in your cookbook
• I am also capable to hold your secrets(Encrypted Data Bags)
• I like to reside at Chef Server so that I could serve every node
Chef Vault
• I am specially developed for managing your secret data.
• I am keyless
• Only trusted nodes can read me
• gem install chef-vault
Roles
• I am a runlist template which can be consumed by all nodes
• You can assign me to multiple nodes in same time
• Same as runlist, I have recipies and atrributes in me
• My attributes get high precedence than node and environment
attributes(same type)
• Roles can be assigned in Roles too
• I am JSON
• I miss versioning
Role view
Environments
Environments
• Every node is a part of environment
• By default every node is registered under _default environment
• _default is a environment which cannot be changed
• We can create our own environments
• A node can be a part of one environment at a time
• Environments allow you to assign roles, attributes, restricting
cookbook version
• I am JSON
• I miss versioning
Environment view
Test Kitchen
• Kitchen supports multiple platforms (i.e.: RHEL, Ubuntu, Windows,
etc.)
• It supports multiple frameworks (i.e.: Rspec, Serverspec, etc.)
• It encourages Test-Driven Development
Chef Supermarket
• 100% free
• Chef Supermarket hosts cookbooks which are built by community and
available for everyone.
• https://supermarket.chef.io/
• Private Supermarket
Let’s Cook
• Build a Cookbook
• Test On Kitchen
• Roll out in Environment
For any questions, reach out to me at
dilip.panwar@barclaycard.co.uk

Contenu connexe

Tendances

SD PHP Zend Framework
SD PHP Zend FrameworkSD PHP Zend Framework
SD PHP Zend Framework
philipjting
 
Python to go
Python to goPython to go
Python to go
Weng Wei
 

Tendances (20)

Automating security with PowerShell
Automating security with PowerShellAutomating security with PowerShell
Automating security with PowerShell
 
SD PHP Zend Framework
SD PHP Zend FrameworkSD PHP Zend Framework
SD PHP Zend Framework
 
20131002
2013100220131002
20131002
 
Software architecture : From project management to deployment
Software architecture : From project management to deploymentSoftware architecture : From project management to deployment
Software architecture : From project management to deployment
 
Riak at Posterous
Riak at PosterousRiak at Posterous
Riak at Posterous
 
TypeScript Jump Start
TypeScript Jump StartTypeScript Jump Start
TypeScript Jump Start
 
Vimperl
VimperlVimperl
Vimperl
 
2013 spider - LibreOffice QA Community
2013 spider - LibreOffice QA Community2013 spider - LibreOffice QA Community
2013 spider - LibreOffice QA Community
 
Actors evolved- Rotem Hermon
Actors evolved- Rotem HermonActors evolved- Rotem Hermon
Actors evolved- Rotem Hermon
 
Rebooting design in RavenDB
Rebooting design in RavenDBRebooting design in RavenDB
Rebooting design in RavenDB
 
TSSJS 2011 - JRuby
TSSJS 2011 - JRubyTSSJS 2011 - JRuby
TSSJS 2011 - JRuby
 
Staying friendly with the gc
Staying friendly with the gcStaying friendly with the gc
Staying friendly with the gc
 
Python to go
Python to goPython to go
Python to go
 
Week7
Week7Week7
Week7
 
How to make a iOS 8 touch framework - MOPCON 2014
How to make a iOS 8 touch framework - MOPCON 2014How to make a iOS 8 touch framework - MOPCON 2014
How to make a iOS 8 touch framework - MOPCON 2014
 
Service stack all the things
Service stack all the thingsService stack all the things
Service stack all the things
 
JavaScript State of the Union - Jan 2013
JavaScript State of the Union - Jan 2013JavaScript State of the Union - Jan 2013
JavaScript State of the Union - Jan 2013
 
Badass Microservices - deploy, build & scale your apps with Payara Micro
Badass Microservices - deploy, build & scale your apps with Payara MicroBadass Microservices - deploy, build & scale your apps with Payara Micro
Badass Microservices - deploy, build & scale your apps with Payara Micro
 
Erlang: TL;DR
Erlang: TL;DRErlang: TL;DR
Erlang: TL;DR
 
RavenDB in the wild
RavenDB in the wildRavenDB in the wild
RavenDB in the wild
 

Similaire à Opscode Chef for Dummies

Chef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of ChefChef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of Chef
Chef Software, Inc.
 
Chef for Openstack
Chef for OpenstackChef for Openstack
Chef for Openstack
Mohit Sethi
 
Emerging chef patterns and practices
Emerging chef patterns and practicesEmerging chef patterns and practices
Emerging chef patterns and practices
Owain Perry
 

Similaire à Opscode Chef for Dummies (20)

Introduction to Cooking with Chef
Introduction to Cooking with ChefIntroduction to Cooking with Chef
Introduction to Cooking with Chef
 
Chef Jumpstart
Chef JumpstartChef Jumpstart
Chef Jumpstart
 
Chef for openstack
Chef for openstackChef for openstack
Chef for openstack
 
Chef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of ChefChef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of Chef
 
Chef for Openstack
Chef for OpenstackChef for Openstack
Chef for Openstack
 
Dev-Friendly Ops
Dev-Friendly OpsDev-Friendly Ops
Dev-Friendly Ops
 
Using Nagios with Chef
Using Nagios with ChefUsing Nagios with Chef
Using Nagios with Chef
 
Emerging chef patterns and practices
Emerging chef patterns and practicesEmerging chef patterns and practices
Emerging chef patterns and practices
 
Chef, Vagrant and Friends
Chef, Vagrant and FriendsChef, Vagrant and Friends
Chef, Vagrant and Friends
 
Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...
Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...
Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...
 
Managing Distributed Systems with Chef
Managing Distributed Systems with ChefManaging Distributed Systems with Chef
Managing Distributed Systems with Chef
 
The Environment Restaurant
The Environment RestaurantThe Environment Restaurant
The Environment Restaurant
 
Why puppet? Why now?
Why puppet? Why now?Why puppet? Why now?
Why puppet? Why now?
 
Continuous delivery with open source tools
Continuous delivery with open source toolsContinuous delivery with open source tools
Continuous delivery with open source tools
 
Chef: Smart infrastructure automation
Chef: Smart infrastructure automationChef: Smart infrastructure automation
Chef: Smart infrastructure automation
 
Opscode Webinar: Managing Your VMware Infrastructure with Chef
Opscode Webinar: Managing Your VMware Infrastructure with ChefOpscode Webinar: Managing Your VMware Infrastructure with Chef
Opscode Webinar: Managing Your VMware Infrastructure with Chef
 
The Five Stages of Chef Grief: My First 6 months with Chef, and Getting Aroun...
The Five Stages of Chef Grief: My First 6 months with Chef, and Getting Aroun...The Five Stages of Chef Grief: My First 6 months with Chef, and Getting Aroun...
The Five Stages of Chef Grief: My First 6 months with Chef, and Getting Aroun...
 
Cooking with Chef
Cooking with ChefCooking with Chef
Cooking with Chef
 
Introduction to Chef - Techsuperwomen Summit
Introduction to Chef - Techsuperwomen SummitIntroduction to Chef - Techsuperwomen Summit
Introduction to Chef - Techsuperwomen Summit
 
Full-Stack CakePHP Deployment
Full-Stack CakePHP DeploymentFull-Stack CakePHP Deployment
Full-Stack CakePHP Deployment
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
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, ...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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?
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.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
 
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
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 

Opscode Chef for Dummies

  • 1. WHO AM I WHO ARE YOU?
  • 2. WHO ARE YOU? A Newbie to IT? Developer? Tester? System Administrator? “Business” People?
  • 4. Why DebOps? Debit Ops from your Infrastructure to make NoOps Infrastructure.
  • 5. Challenges • Complex to Manage • Extra long time required for a change • Risky Rollbacks • Anti Agnostic • High Maintenance
  • 6. Why DebOps Adoption ? • Stable/Reliable operating environments • Infrastructure is maintained as code • Infrastructure Versioning • Self Healing Capability • Early detection and faster correction • Less Time to Market • Auditable • Proactive
  • 9.
  • 11. Chef can also Stand Alone Code Test and Release locally with Chef Solo
  • 12. Why Chef ? • Infrastructure as a Code • Self Healing Capability • Idempotent • Lightweight • Resilient Infrastructure • Auditable
  • 13. Why Chef? • Infra as a Code • Version Controlled • Idempotent • TMTOWDI • Push Me • Pull Me
  • 16. Chef Node Any Server/VM which is managed and controlled by Chef is a Chef Node
  • 17. What makes your server a Chef Node? • Chef-Client installed • Bootstrapped(Registered) with Chef Server • Runlist Attached
  • 18. Node Attributes • Node specific properties are called as Node Attributes • It can be provided in a form of Array, Hash, or as a single variable. • Attributes can be passed from attribute file, roles, environment, runlist • Attributes works on priority basis.
  • 19.
  • 22. Cookbook Contents • Metadata.rb • Recipes • Attributes • Files • Templates • Resources • Providers
  • 23. Can you Imagine Chef without Knife ?
  • 24. KNIFE C - Create R - Read U - Update D - Delete D - Download S - Search
  • 26. Chef Development Kit (DK) • Chef Development Kit • Why DK with Knife? • We need few more tools to build a better Cookbook • CRUDDS… Am I missing anything? • Cookbook Dependency Management • A warning tool, if recipe is not healthy – Foodcritic • Gem bar • Push Jobs
  • 28. Attributes • I am used to supply what is required by a cookbook • Yes I have priorities • You can stamp me from cookbook, roles, environments, Runlist
  • 29. Template(Configuration as a Code) • Program your Configuration files • I can fetch your attributes from anywhere • I understand your if else for…
  • 31. Files • Use me to dump your as is files • I am used to provide your pre baked resources
  • 32. Data Bags • I am a special attribute • Node Independent • Priority Independent • Available for All • I am available as a global/environment variables in your cookbook • I am also capable to hold your secrets(Encrypted Data Bags) • I like to reside at Chef Server so that I could serve every node
  • 33. Chef Vault • I am specially developed for managing your secret data. • I am keyless • Only trusted nodes can read me • gem install chef-vault
  • 34.
  • 35. Roles • I am a runlist template which can be consumed by all nodes • You can assign me to multiple nodes in same time • Same as runlist, I have recipies and atrributes in me • My attributes get high precedence than node and environment attributes(same type) • Roles can be assigned in Roles too • I am JSON • I miss versioning
  • 38. Environments • Every node is a part of environment • By default every node is registered under _default environment • _default is a environment which cannot be changed • We can create our own environments • A node can be a part of one environment at a time • Environments allow you to assign roles, attributes, restricting cookbook version • I am JSON • I miss versioning
  • 40.
  • 41. Test Kitchen • Kitchen supports multiple platforms (i.e.: RHEL, Ubuntu, Windows, etc.) • It supports multiple frameworks (i.e.: Rspec, Serverspec, etc.) • It encourages Test-Driven Development
  • 42.
  • 43.
  • 44. Chef Supermarket • 100% free • Chef Supermarket hosts cookbooks which are built by community and available for everyone. • https://supermarket.chef.io/ • Private Supermarket
  • 45.
  • 46.
  • 47. Let’s Cook • Build a Cookbook • Test On Kitchen • Roll out in Environment
  • 48.
  • 49. For any questions, reach out to me at dilip.panwar@barclaycard.co.uk

Notes de l'éditeur

  1. Manage your infra as a source Code