SlideShare uma empresa Scribd logo
1 de 19
Baixar para ler offline
San Antonio Chef Users
June 2014
SAChefUsers
Hart Hoover / Josh O'Brien
@SAChefUsers
@hhoover @OBrienCommaJosh
Welcome!
Who are we?
Hart Hoover
Who are we?
Josh O'Brien
Announcements!
Other interesting Meetups?
Who's hiring?
Recent Chef News
In the next 5
minutes meet
someone new.
Chef Metal
Introduced at ChefConf 2014
What does Chef Metal do?
Provides a 'machine' resource
Allows cluster management in Chef
VERSION CONTROL
Driver Driven Development
SSH: Bare Metal
chef-metal-fog: Cloud
Vagrant: Testing VMs
LXC / Docker: Containers
vSphere: VMWare
Driver Driven Development
SSH: Bare Metal
chef-metal-fog: Cloud
Vagrant: Testing VMs
LXC / Docker: Containers
vSphere: VMWare
Basic Chef Metal
machine 'db' do
recipe 'mysql'
end
machine 'web1' do
recipe 'apache'
end
More Advanced Chef Metal
machine 'db' do
recipe 'apt'
recipe 'mysql'
recipe 'application_cookbook::db_master'
tag 'dbmaster'
notifies 'converge', 'machine[web]', 'delayed'
end
machine 'web' do
recipe 'apt'
recipe 'apache'
recipe 'application_cookbook::webapp'
tag 'webserver'
attributes(
rackspace: {
cloud_credentials: {
username: Chef::Config[:rackspace_api_username],
api_key: Chef::Config[:rackspace_api_key]
}
}
)
action 'nothing'
end
Batch Mode
machine 'db' do
recipe 'mysql'
end
machine 'web1' do
recipe 'apache'
end
Batch Mode
machine_batch do
machine 'db' do
recipe 'mysql'
end
machine 'web1' do
recipe 'apache'
end
end
Cloud Recipe Walkthrough
node.set['build-essential']['compile_time'] = true
include_recipe 'build-essential'
chef_gem 'chef-metal' do
version '0.12.1'
action 'install'
end
chef_gem 'chef-metal-fog' do
version '0.6.1'
action 'install'
end
require 'chef_metal'
require 'chef_metal_fog'
require 'cheffish'
require 'fog'
Cloud Recipe Walkthrough
with_driver 'fog:Rackspace:https://identity.api.rackspacecloud.com/v2.0',
compute_options: {
rackspace_api_key: Chef::Config[:rackspace_api_key],
rackspace_username: Chef::Config[:rackspace_api_username],
rackspace_region: Chef::Config[:rackspace_region]
}
fog_key_pair metal-key
with_machine_options ssh_username: 'root',
bootstrap_options: {
key_name: metal-key,
flavor_id: 'performance1-2',
image_id: 'ffa476b1-9b14-46bd-99a8-862d1d94eb7a'
}
Cloud Recipe Walkthrough
# Read Chef Config from knife.rb
with_chef_server Chef::Config[:chef_server_url],
client_name: Chef::Config[:node_name],
signing_key_filename: Chef::Config[:client_key]
DEMO
Thank you!
Hart Hoover @hhoover
SAChefUsers @SAChefUsers

Mais conteúdo relacionado

Mais procurados

Testing for infra code using test-kitchen,docker,chef
Testing for infra code using  test-kitchen,docker,chefTesting for infra code using  test-kitchen,docker,chef
Testing for infra code using test-kitchen,docker,chef
kamalikamj
 
Automating Software Development Life Cycle - A DevOps Approach
Automating Software Development Life Cycle - A DevOps ApproachAutomating Software Development Life Cycle - A DevOps Approach
Automating Software Development Life Cycle - A DevOps Approach
Akshaya Mahapatra
 
Cfg mgmtcamp c-dwithchef
Cfg mgmtcamp c-dwithchefCfg mgmtcamp c-dwithchef
Cfg mgmtcamp c-dwithchef
George Miranda
 

Mais procurados (20)

Lookout-Cucumber-Chef
Lookout-Cucumber-ChefLookout-Cucumber-Chef
Lookout-Cucumber-Chef
 
Test Driven Development with Chef
Test Driven Development with ChefTest Driven Development with Chef
Test Driven Development with Chef
 
Chef at Etsy
Chef at EtsyChef at Etsy
Chef at Etsy
 
Testing for infra code using test-kitchen,docker,chef
Testing for infra code using  test-kitchen,docker,chefTesting for infra code using  test-kitchen,docker,chef
Testing for infra code using test-kitchen,docker,chef
 
Using Vagrant
Using VagrantUsing Vagrant
Using Vagrant
 
Chef at WebMD
Chef at WebMDChef at WebMD
Chef at WebMD
 
Test driven infrastructure
Test driven infrastructureTest driven infrastructure
Test driven infrastructure
 
Chef in a nutshell
Chef in a nutshellChef in a nutshell
Chef in a nutshell
 
Chef basics - write infrastructure as code
Chef basics - write infrastructure as codeChef basics - write infrastructure as code
Chef basics - write infrastructure as code
 
2019 Chef InSpec Jumpstart Part 2 of 2
2019 Chef InSpec Jumpstart Part 2 of 22019 Chef InSpec Jumpstart Part 2 of 2
2019 Chef InSpec Jumpstart Part 2 of 2
 
Integration testing for salt states using aws ec2 container service
Integration testing for salt states using aws ec2 container serviceIntegration testing for salt states using aws ec2 container service
Integration testing for salt states using aws ec2 container service
 
Vagrant, Chef and TYPO3 - A Love Affair
Vagrant, Chef and TYPO3 - A Love AffairVagrant, Chef and TYPO3 - A Love Affair
Vagrant, Chef and TYPO3 - A Love Affair
 
Test Driven Infrastructure with Docker, Test Kitchen and Serverspec
Test Driven Infrastructure with Docker, Test Kitchen and ServerspecTest Driven Infrastructure with Docker, Test Kitchen and Serverspec
Test Driven Infrastructure with Docker, Test Kitchen and Serverspec
 
2019 Chef InSpec Jumpstart Part 1 of 2
2019 Chef InSpec Jumpstart Part 1 of 22019 Chef InSpec Jumpstart Part 1 of 2
2019 Chef InSpec Jumpstart Part 1 of 2
 
Automating Software Development Life Cycle - A DevOps Approach
Automating Software Development Life Cycle - A DevOps ApproachAutomating Software Development Life Cycle - A DevOps Approach
Automating Software Development Life Cycle - A DevOps Approach
 
Ansible top 10 - 2018
Ansible top 10 -  2018Ansible top 10 -  2018
Ansible top 10 - 2018
 
Cfg mgmtcamp c-dwithchef
Cfg mgmtcamp c-dwithchefCfg mgmtcamp c-dwithchef
Cfg mgmtcamp c-dwithchef
 
Application Automation with Habitat
Application Automation with HabitatApplication Automation with Habitat
Application Automation with Habitat
 
Orchestration? You Don't Need Orchestration. What You Want is Choreography.
Orchestration? You Don't Need Orchestration. What You Want is Choreography.Orchestration? You Don't Need Orchestration. What You Want is Choreography.
Orchestration? You Don't Need Orchestration. What You Want is Choreography.
 
TDD with Chef, DSC and Pester - 2.0.26
TDD with Chef, DSC and Pester - 2.0.26TDD with Chef, DSC and Pester - 2.0.26
TDD with Chef, DSC and Pester - 2.0.26
 

Semelhante a San Antonio Chef Users Meetup, Jun 2014 - Chef Metal

Semelhante a San Antonio Chef Users Meetup, Jun 2014 - Chef Metal (20)

2016 - Easing Your Way Into Docker: Lessons From a Journey to Production
2016 - Easing Your Way Into Docker: Lessons From a Journey to Production2016 - Easing Your Way Into Docker: Lessons From a Journey to Production
2016 - Easing Your Way Into Docker: Lessons From a Journey to Production
 
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
 
Deploying and Testing Microservices
Deploying and Testing MicroservicesDeploying and Testing Microservices
Deploying and Testing Microservices
 
Mitchell Hashimoto, HashiCorp
Mitchell Hashimoto, HashiCorpMitchell Hashimoto, HashiCorp
Mitchell Hashimoto, HashiCorp
 
Azure handsonlab
Azure handsonlabAzure handsonlab
Azure handsonlab
 
Chef Provisioning a Chef Server Cluster - ChefConf 2015
Chef Provisioning a Chef Server Cluster - ChefConf 2015Chef Provisioning a Chef Server Cluster - ChefConf 2015
Chef Provisioning a Chef Server Cluster - ChefConf 2015
 
Cloud Automation with Opscode Chef
Cloud Automation with Opscode ChefCloud Automation with Opscode Chef
Cloud Automation with Opscode Chef
 
Introduction to chef framework
Introduction to chef frameworkIntroduction to chef framework
Introduction to chef framework
 
Introduction to Chef
Introduction to ChefIntroduction to Chef
Introduction to Chef
 
Automate or Die
Automate or DieAutomate or Die
Automate or Die
 
Linecook - A Chef Alternative
Linecook - A Chef AlternativeLinecook - A Chef Alternative
Linecook - A Chef Alternative
 
Communication Amongst Microservices: Kubernetes, Istio, and Spring Cloud with...
Communication Amongst Microservices: Kubernetes, Istio, and Spring Cloud with...Communication Amongst Microservices: Kubernetes, Istio, and Spring Cloud with...
Communication Amongst Microservices: Kubernetes, Istio, and Spring Cloud with...
 
Test Kitchen and Infrastructure as Code
Test Kitchen and Infrastructure as CodeTest Kitchen and Infrastructure as Code
Test Kitchen and Infrastructure as Code
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes Networking
 
What if a video dev redesigned a serverless API?
What if a video dev redesigned a serverless API?What if a video dev redesigned a serverless API?
What if a video dev redesigned a serverless API?
 
SaltStack's NetAPI at Photobucket - Denver SaltStack Meetup
SaltStack's NetAPI at Photobucket - Denver SaltStack MeetupSaltStack's NetAPI at Photobucket - Denver SaltStack Meetup
SaltStack's NetAPI at Photobucket - Denver SaltStack Meetup
 
London Community Summit 2016 - Fresh New Chef Stuff
London Community Summit 2016 - Fresh New Chef StuffLondon Community Summit 2016 - Fresh New Chef Stuff
London Community Summit 2016 - Fresh New Chef Stuff
 
Compliance as Code: Velocity with Security - Fraser Pollock, Chef
Compliance as Code: Velocity with Security - Fraser Pollock, ChefCompliance as Code: Velocity with Security - Fraser Pollock, Chef
Compliance as Code: Velocity with Security - Fraser Pollock, Chef
 
Laravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello ProductionLaravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello Production
 
Modern Web Application Development Workflow - web2day 2014
Modern Web Application Development Workflow - web2day 2014Modern Web Application Development Workflow - web2day 2014
Modern Web Application Development Workflow - web2day 2014
 

Mais de Hart Hoover

Mais de Hart Hoover (10)

CI/CD with Kubernetes
CI/CD with KubernetesCI/CD with Kubernetes
CI/CD with Kubernetes
 
CI/CD with Docker on AWS
CI/CD with Docker on AWSCI/CD with Docker on AWS
CI/CD with Docker on AWS
 
Ignite Talk: "Building a DevOps Community" / DevOps Days Austin 2015
Ignite Talk: "Building a DevOps Community" / DevOps Days Austin 2015Ignite Talk: "Building a DevOps Community" / DevOps Days Austin 2015
Ignite Talk: "Building a DevOps Community" / DevOps Days Austin 2015
 
San Antonio DevOps: Fluentd
San Antonio DevOps: FluentdSan Antonio DevOps: Fluentd
San Antonio DevOps: Fluentd
 
Making TDD [Somewhat] Bearable on OpenStack
Making TDD [Somewhat] Bearable on OpenStackMaking TDD [Somewhat] Bearable on OpenStack
Making TDD [Somewhat] Bearable on OpenStack
 
Rapid Chef Development with Berkshelf, Test-Kitchen and Foodcritic
Rapid Chef Development with Berkshelf, Test-Kitchen and FoodcriticRapid Chef Development with Berkshelf, Test-Kitchen and Foodcritic
Rapid Chef Development with Berkshelf, Test-Kitchen and Foodcritic
 
Vagrant Intro
Vagrant IntroVagrant Intro
Vagrant Intro
 
"Unlocked: The Hybrid Cloud" Business Track
"Unlocked: The Hybrid Cloud" Business Track"Unlocked: The Hybrid Cloud" Business Track
"Unlocked: The Hybrid Cloud" Business Track
 
Isolated Networks in the Cloud
Isolated Networks in the CloudIsolated Networks in the Cloud
Isolated Networks in the Cloud
 
Why Open Matters
Why Open MattersWhy Open Matters
Why Open Matters
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
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
Earley Information Science
 

Último (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
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...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
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
 
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...
 
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
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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
 
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
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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
 
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
 

San Antonio Chef Users Meetup, Jun 2014 - Chef Metal

  • 1. San Antonio Chef Users June 2014 SAChefUsers Hart Hoover / Josh O'Brien @SAChefUsers @hhoover @OBrienCommaJosh
  • 6. In the next 5 minutes meet someone new.
  • 7. Chef Metal Introduced at ChefConf 2014
  • 8. What does Chef Metal do? Provides a 'machine' resource Allows cluster management in Chef VERSION CONTROL
  • 9. Driver Driven Development SSH: Bare Metal chef-metal-fog: Cloud Vagrant: Testing VMs LXC / Docker: Containers vSphere: VMWare
  • 10. Driver Driven Development SSH: Bare Metal chef-metal-fog: Cloud Vagrant: Testing VMs LXC / Docker: Containers vSphere: VMWare
  • 11. Basic Chef Metal machine 'db' do recipe 'mysql' end machine 'web1' do recipe 'apache' end
  • 12. More Advanced Chef Metal machine 'db' do recipe 'apt' recipe 'mysql' recipe 'application_cookbook::db_master' tag 'dbmaster' notifies 'converge', 'machine[web]', 'delayed' end machine 'web' do recipe 'apt' recipe 'apache' recipe 'application_cookbook::webapp' tag 'webserver' attributes( rackspace: { cloud_credentials: { username: Chef::Config[:rackspace_api_username], api_key: Chef::Config[:rackspace_api_key] } } ) action 'nothing' end
  • 13. Batch Mode machine 'db' do recipe 'mysql' end machine 'web1' do recipe 'apache' end
  • 14. Batch Mode machine_batch do machine 'db' do recipe 'mysql' end machine 'web1' do recipe 'apache' end end
  • 15. Cloud Recipe Walkthrough node.set['build-essential']['compile_time'] = true include_recipe 'build-essential' chef_gem 'chef-metal' do version '0.12.1' action 'install' end chef_gem 'chef-metal-fog' do version '0.6.1' action 'install' end require 'chef_metal' require 'chef_metal_fog' require 'cheffish' require 'fog'
  • 16. Cloud Recipe Walkthrough with_driver 'fog:Rackspace:https://identity.api.rackspacecloud.com/v2.0', compute_options: { rackspace_api_key: Chef::Config[:rackspace_api_key], rackspace_username: Chef::Config[:rackspace_api_username], rackspace_region: Chef::Config[:rackspace_region] } fog_key_pair metal-key with_machine_options ssh_username: 'root', bootstrap_options: { key_name: metal-key, flavor_id: 'performance1-2', image_id: 'ffa476b1-9b14-46bd-99a8-862d1d94eb7a' }
  • 17. Cloud Recipe Walkthrough # Read Chef Config from knife.rb with_chef_server Chef::Config[:chef_server_url], client_name: Chef::Config[:node_name], signing_key_filename: Chef::Config[:client_key]
  • 18. DEMO
  • 19. Thank you! Hart Hoover @hhoover SAChefUsers @SAChefUsers