SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Automating security with PowerShell
Automating security with PowerShellAutomating security with PowerShell
Automating security with PowerShellJaap Brasser
 
SD PHP Zend Framework
SD PHP Zend FrameworkSD PHP Zend Framework
SD PHP Zend Frameworkphilipjting
 
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 deploymentFoyzul Karim
 
Riak at Posterous
Riak at PosterousRiak at Posterous
Riak at Posterouscapotej
 
TypeScript Jump Start
TypeScript Jump StartTypeScript Jump Start
TypeScript Jump StartMostafa
 
2013 spider - LibreOffice QA Community
2013 spider - LibreOffice QA Community2013 spider - LibreOffice QA Community
2013 spider - LibreOffice QA CommunityRob Snelders
 
Rebooting design in RavenDB
Rebooting design in RavenDBRebooting design in RavenDB
Rebooting design in RavenDBOren Eini
 
Staying friendly with the gc
Staying friendly with the gcStaying friendly with the gc
Staying friendly with the gcOren Eini
 
Python to go
Python to goPython to go
Python to goWeng Wei
 
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 2014Kai-Yuan Cheng
 
Service stack all the things
Service stack all the thingsService stack all the things
Service stack all the thingscyberzeddk
 
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 2013Ronald Northrip
 
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 MicroPayara
 
Erlang: TL;DR
Erlang: TL;DRErlang: TL;DR
Erlang: TL;DRvorn
 

Was ist angesagt? (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
 

Ähnlich wie Opscode Chef for Dummies

Introduction to Cooking with Chef
Introduction to Cooking with ChefIntroduction to Cooking with Chef
Introduction to Cooking with ChefJohn Osborne
 
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 ChefChef Software, Inc.
 
Chef for Openstack
Chef for OpenstackChef for Openstack
Chef for OpenstackMohit Sethi
 
Using Nagios with Chef
Using Nagios with ChefUsing Nagios with Chef
Using Nagios with ChefBryan McLellan
 
Emerging chef patterns and practices
Emerging chef patterns and practicesEmerging chef patterns and practices
Emerging chef patterns and practicesOwain Perry
 
Chef, Vagrant and Friends
Chef, Vagrant and FriendsChef, Vagrant and Friends
Chef, Vagrant and FriendsBen McRae
 
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...Chef Software, Inc.
 
Managing Distributed Systems with Chef
Managing Distributed Systems with ChefManaging Distributed Systems with Chef
Managing Distributed Systems with ChefMandi Walls
 
Continuous delivery with open source tools
Continuous delivery with open source toolsContinuous delivery with open source tools
Continuous delivery with open source toolsSebastian Helzle
 
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 ChefChef Software, Inc.
 
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...DevOpsDays Austin 2014
 
Introduction to Chef - Techsuperwomen Summit
Introduction to Chef - Techsuperwomen SummitIntroduction to Chef - Techsuperwomen Summit
Introduction to Chef - Techsuperwomen SummitJennifer Davis
 

Ähnlich wie 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
 

Kürzlich hochgeladen

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.pdfUK Journal
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
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 productivityPrincipled Technologies
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
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 Takeoffsammart93
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
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...Neo4j
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
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 AutomationSafe Software
 

Kürzlich hochgeladen (20)

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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
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...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
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
 

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

Hinweis der Redaktion

  1. Manage your infra as a source Code