Chef - the second presentation

650 views

Published on

So you've installed chef and you're really using it. What next?

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Chef - the second presentation

  1. 1. Chef – The second presentation Robert Postill [email_address]
  2. 2. So recap the first presentation then...
  3. 3. Configuration Management is lovely
  4. 4. Chef is a configuration management tool
  5. 5. How does it work? Simple: You have a set of cookbooks stored in git They get pushed to the chef server The chef server pushes them out to the chef clients The clients run the recipes from the cookbooks based on roles
  6. 6. What does a recipe look like? user "random" do comment "Random User" uid "1000" gid "users" home "/home/random" shell "/bin/zsh" password "$1$JJsvHslV$szsCjVEroftprNn4JHtDi." end
  7. 7. Or ... %w{dir1 dir2 dir3}.each do |dir| directory "/tmp/mydirs/#{dir}" do mode 0775 owner "root" group "root" action :create recursive true end end
  8. 8. Awesome!
  9. 9. So you set up a config like this...
  10. 11. You're a superhero!
  11. 12. Until...
  12. 13. Until... Your server goes pop!
  13. 14. Until... Your server goes pop! Or...
  14. 15. Until... Your server goes pop! Or... You simultaneously nix all your machines at once
  15. 16. Until... Your server goes pop! Or... You simultaneously nix all your machines at once Or...
  16. 17. Until... Your server goes pop! Or... You simultaneously nix all your machines at once Or... After you have fifty machines you cannot see a thing in the web UI :(
  17. 18. BOBBINS!!!!!
  18. 19. You start thinking... How do I make this resilient? How do I try out recipes before hosing machines? How do I separate out the machines into groups?
  19. 20. Behold! The future!
  20. 21. Does it work? I'll let you know... :)
  21. 22. What about some general tips? Sure: Version 0.7 chef is not a patch on v0.9 Use chef-solo and shef to trial your recipes before pushing them up to a sever... Beware the abstraction Data bags are your friend
  22. 23. Questions? Photo Credits: (all flickr so flickr.com/<username>) Millzero – endless love Lockergnome – I'm Happy? Istolethetv – awesome bat-shirt Christine [cbszeto] – Isaac tantrum
  23. 24. Inside you get this:

×