Cooking Environments with Chef
Everything begins with a planWhatWhyHow@colin_gemmell                                               pythonandchips@gmail.com
What’s it forBorn out of “cloud computing” and dev-opsCross platform Configuration and deployment tool written in rubyExecute OS commandsFocuses on reusable recipes@colin_gemmell                                               pythonandchips@gmail.com
TermanologyResource – Executable bit of codeRecipe – Collection of resourcesCookbook – recipes and all other files need for to complete a task@colin_gemmell                                               pythonandchips@gmail.com
WhyAllows configuration of every environment the same Version Control your configurationsNot just for servers@colin_gemmell                                               pythonandchips@gmail.com
How2 different flavours of chefChef Server & Chef ClientChef SoloBootstrap the environmentConfiguration fileMain recipeResources@colin_gemmell                                               pythonandchips@gmail.com
PackageInstall application from package managerpackage "couchdb" dopackage_name "couchdb"end@colin_gemmell                                               pythonandchips@gmail.com
TemplateGenerate file based on an erb templatetemplate "/home/cgemmell/.gitconfig" do  source "gitconfig.erb"  owner node[:user]  group node[:user]  mode "0644"  variables(    :name => node["name"],    :email => node["email"]  )end@colin_gemmell                                               pythonandchips@gmail.com
TemplateFile: gitconfig.erb[user]  name = <%= @name %>  email = <%= @email %>[diff]  external = kdiff3[pager]  diff =[merge]	tool = kdiff3@colin_gemmell                                               pythonandchips@gmail.com
Creating files and directoriesdirectory “/home/cgemmell/projects" do  owner node[:user]  group node[:user]  mode "0755"  action :createendfile "/home/#{node[:user]}/.bashrc" do  group node[:user]  owner node[:user]  mode "0644"  content "source .bashrvm"  action :createnot_if doFile.exists?("/home/cgemmell/.bashrc")  endend@colin_gemmell                                               pythonandchips@gmail.com
Execute scriptbash "install coffeescript" do  interpreter "bash"  user "root"cwd “/home/cgemmell”  code “npm install -g coffee-script”end@colin_gemmell                                               pythonandchips@gmail.com
Download remote fileremote_file “/tmp/RubyMine-3.1.1.tar.gz" do  source "http://download.jetbrains.com/ruby/RubyMine-3.1.1.tar.gz"end@colin_gemmell                                               pythonandchips@gmail.com
Checkout from Source controlgit “/home/cgemmell/projects/chef" do        user node[:user]        group node[:user]        repository “git@github.com:opscode/chef”        reference "master"        action :sync end@colin_gemmell                                               pythonandchips@gmail.com
Chef on windowsNot fully supportedManual installation a bit complicatedInstaller available athttps://github.com/downloads/pmorton/chef-windows-installer/ChefInstaller.exeMore info avaiable athttp://wiki.opscode.com/display/chef/Installation+on+Windows@colin_gemmell                                               pythonandchips@gmail.com
PowershellPowershell “cwd-then-write” docwd “temp”code <<-EOH		$stream = [System.IO.StreamWriter] “./temp-write-from-chef.txt”               $stream.WriteLine(“Chef on windows is awesome”)	$stream.close()EOHendN.B. Dependant on the powershell@colin_gemmell                                               pythonandchips@gmail.com
The endResourcesDocumentationhttp://wiki.opscode.com/display/chef/HomeSource codehttps://github.com/opscode/chefPre-written recipeshttps://github.com/opscode/cookbooksVM Setuphttps://github.com/pythonandchips/chef-vm-setupTwitter: @colin_gemmellE-mail: pythonandchips@gmail.com@colin_gemmell                                               pythonandchips@gmail.com

More Related Content

PDF
JDO 2019: Serverless Hype Driven Development - Grzegorz Piotrowski
PPTX
Magento2 From Setup To Deployment. Automate Everything
PDF
kRouter
PDF
Search 500-video-clips
PDF
Selenium sandwich-3: Being where you aren't.
PDF
Gulp - the streaming build system
ODP
Software Project Management
PDF
Designing net-aws-glacier
JDO 2019: Serverless Hype Driven Development - Grzegorz Piotrowski
Magento2 From Setup To Deployment. Automate Everything
kRouter
Search 500-video-clips
Selenium sandwich-3: Being where you aren't.
Gulp - the streaming build system
Software Project Management
Designing net-aws-glacier

What's hot (20)

PDF
Build a bot workshop async primer - php[tek]
PDF
Cookbook refactoring & abstracting logic to Ruby(gems)
PDF
Lies, Damn Lies, and Benchmarks
KEY
You're Doing It Wrong
PPTX
CouchDB Day NYC 2017: Mango
PDF
Performance
PPTX
CouchDB Day NYC 2017: JSON Documents
PDF
node-webkit : Make a magic from your a desktop app to desktop app!
PDF
Front-End Tooling
PDF
Selenium sandwich-2
PPTX
CouchDB Day NYC 2017: MapReduce Views
PDF
Distributing UI Libraries: in a post Web-Component world
PDF
Google app engine development with java and php
PDF
Selenium Sandwich Part 1: Data driven Selenium
PPT
Learn REST API with Python
PDF
Hello git
PDF
Ch ch-changes cake php2
PDF
ZendCon 2017 - Build a Bot Workshop - Async Primer
PPTX
Introduction tomongodb
PDF
Cross-platform Desktop application with AngularJS and build with Node-webkit
Build a bot workshop async primer - php[tek]
Cookbook refactoring & abstracting logic to Ruby(gems)
Lies, Damn Lies, and Benchmarks
You're Doing It Wrong
CouchDB Day NYC 2017: Mango
Performance
CouchDB Day NYC 2017: JSON Documents
node-webkit : Make a magic from your a desktop app to desktop app!
Front-End Tooling
Selenium sandwich-2
CouchDB Day NYC 2017: MapReduce Views
Distributing UI Libraries: in a post Web-Component world
Google app engine development with java and php
Selenium Sandwich Part 1: Data driven Selenium
Learn REST API with Python
Hello git
Ch ch-changes cake php2
ZendCon 2017 - Build a Bot Workshop - Async Primer
Introduction tomongodb
Cross-platform Desktop application with AngularJS and build with Node-webkit
Ad

Viewers also liked (8)

PPTX
From dot net_to_rails
ODP
From .Net to Rails, A developers story
PDF
From dot net_to_rails
PDF
Linux Daemon Writting
PPT
PCD - Process control daemon
PDF
Linux Network Management
PDF
PPTX
Zombie PowerPoint by @ericpesik
From dot net_to_rails
From .Net to Rails, A developers story
From dot net_to_rails
Linux Daemon Writting
PCD - Process control daemon
Linux Network Management
Zombie PowerPoint by @ericpesik
Ad

Similar to Cooking environments with chef (20)

PDF
Deploying Symfony | symfony.cat
PPT
Capistrano
ODP
Chef training - Day3
PDF
Cooking Perl with Chef: Real World Tutorial with Jitterbug
ODP
Easy Web Project Development & Management with Django & Mercurial
PPT
Life of a Chromium Developer
PDF
Revoke-Obfuscation
PPT
Capistrano Overview
PDF
Introduction to Chef - April 22 2015
PPT
How to host an app for $20 in 20min using buildout and hostout
PPTX
Azure handsonlab
ODP
Chef training Day4
PDF
Chef infrastructure as code - paris.rb
PDF
IT Automation with Chef
PPT
Where's the source, Luke? : How to find and debug the code behind Plone
PDF
Fast Paced Drupal 8: Accelerating Development with Composer, Drupal Console a...
PDF
The Modern Developer Toolbox
PPTX
Configuration Management in the Cloud - Cloud Phoenix Meetup Feb 2014
PPTX
Leveraging Continuous Integration For Fun And Profit!
PDF
SECCOM 2017 - Conan.io o gerente de pacote para C e C++
Deploying Symfony | symfony.cat
Capistrano
Chef training - Day3
Cooking Perl with Chef: Real World Tutorial with Jitterbug
Easy Web Project Development & Management with Django & Mercurial
Life of a Chromium Developer
Revoke-Obfuscation
Capistrano Overview
Introduction to Chef - April 22 2015
How to host an app for $20 in 20min using buildout and hostout
Azure handsonlab
Chef training Day4
Chef infrastructure as code - paris.rb
IT Automation with Chef
Where's the source, Luke? : How to find and debug the code behind Plone
Fast Paced Drupal 8: Accelerating Development with Composer, Drupal Console a...
The Modern Developer Toolbox
Configuration Management in the Cloud - Cloud Phoenix Meetup Feb 2014
Leveraging Continuous Integration For Fun And Profit!
SECCOM 2017 - Conan.io o gerente de pacote para C e C++

Recently uploaded (20)

PDF
Ensemble model-based arrhythmia classification with local interpretable model...
PDF
4 layer Arch & Reference Arch of IoT.pdf
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PDF
Electrocardiogram sequences data analytics and classification using unsupervi...
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PPTX
Build automations faster and more reliably with UiPath ScreenPlay
PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
PPTX
SGT Report The Beast Plan and Cyberphysical Systems of Control
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
A symptom-driven medical diagnosis support model based on machine learning te...
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
SaaS reusability assessment using machine learning techniques
PPTX
Internet of Everything -Basic concepts details
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
Auditboard EB SOX Playbook 2023 edition.
PDF
Build Real-Time ML Apps with Python, Feast & NoSQL
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
Ensemble model-based arrhythmia classification with local interpretable model...
4 layer Arch & Reference Arch of IoT.pdf
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
Electrocardiogram sequences data analytics and classification using unsupervi...
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
Build automations faster and more reliably with UiPath ScreenPlay
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
SGT Report The Beast Plan and Cyberphysical Systems of Control
Lung cancer patients survival prediction using outlier detection and optimize...
A symptom-driven medical diagnosis support model based on machine learning te...
Co-training pseudo-labeling for text classification with support vector machi...
SaaS reusability assessment using machine learning techniques
Internet of Everything -Basic concepts details
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
Auditboard EB SOX Playbook 2023 edition.
Build Real-Time ML Apps with Python, Feast & NoSQL
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
Data Virtualization in Action: Scaling APIs and Apps with FME
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
Rapid Prototyping: A lecture on prototyping techniques for interface design

Cooking environments with chef