Your SlideShare is downloading. ×
Chef, getting started - Wiktor Schmidt (PRUG 3.0)
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Chef, getting started - Wiktor Schmidt (PRUG 3.0)

650
views

Published on

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
650
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 1. CHEF (-SOLO) Getting started
    • 2. DEVOPSdevops is an emerging set of principles, methods and practices for communication, collaboration and integration between software development (application/software engineering) and IT operations(systems administration/infrastructure) professionals
    • 3. CHEFA configuration management system
    • 4. CHEF-SOLO serverless chef
    • 5. WHAT’S THE DESIRED STATUS?
    • 6. HOW TO GET THERE?
    • 7. COOKBOOKS
    • 8. COOKBOOKS
    • 9. RECIPES
    • 10. RECIPES
    • 11. ROLES
    • 12. mysql railsmongodb backup ...ROLES
    • 13. NODES
    • 14. application1 db serverapplication2 app server backup server ... NODES
    • 15. recipes/default.rb:remote_file "/tmp/node-v#{node[:nodejs][:version]}.tar.gz" do  source "http://nodejs.org/dist/node-v#{node[:nodejs][:version]}.tar.gz"  not_if { File.exist? "/tmp/node-v#{node[:nodejs][:version]}.tar.gz" }endexecute "Extract Node source" do  cwd "/tmp"  command "tar -zxvf /tmp/node-v#{node[:nodejs][:version]}.tar.gz"  creates "/tmp/node-v#{node[:nodejs][:version]}"endexecute "Build and Install Node.js" do  cwd "/tmp/node-v#{node[:nodejs][:version]}"  command "./configure; make install"  creates "/usr/local/bin/node"endattributes/default.rb:default[:nodejs][:version] = 0.4.8 EXAMPLE
    • 16. {  "json_class": "Chef::Role",  "run_list": [    "rails_common",    "users",    "mysql",    "memcached",    "sphinx"  ],  "default_attributes": {    "users": [ {      "name": "iktorn",      "authorized_keys": "ssh-rsaAAAAB3NzaC1yc2EAAAABIwAAAQEAyFaMxHDUijZpxdLSBKu0UnPfRAqshw/JtWVtkmkGhuCkSUUUBll5M9efzASrjwkDXKnQp0kePzPWLk1hDwR/qmjydKb5ah4+mPDmiJsCVCIdY4YZHFOf0/eqM+hzkQdZSBm97KrFqG+xtUacCf3BJPRvDSh0zzmjNrab/5mlttiu3Jb5FgZtaUs/PpM6TZorzWyLcEQ9Z8o9bQldjolV93VplN8V4TeDk90gHfqGvLjB+K4AjHELREnFgo108fsOJ3PwNBslA+215Z8S3ZCycXUT3GZLH9+oS1xfy5IzTafUbqxC16klfrxEMM1m37ETvBrxOxLKGx/Z7DKIUttOHQ== iktorn"    } ]  } EXAMPLE ROLE}
    • 17. THAT’S THE DESIRED STATUS
    • 18. HOW TO GET THERE
    • 19. SOME LIVE CODING