Chef, getting started - Wiktor Schmidt (PRUG 3.0)

  • 639 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
639
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
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