Your SlideShare is downloading. ×
chef loves windows
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 loves windows

3,120
views

Published on

Published in: Business, Technology

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

  • Be the first to like this

No Downloads
Views
Total Views
3,120
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
25
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

Transcript

  • 1. slideshare.net/matschaffer/chef-loves-windows Chef Loves Windows Mat Schaffer, ALT.NET – Nov, 2011
  • 2. Our agenda• Me• You• Old cars and automation• How chef works• Setting up Chef• An Example deployment (Node.js)
  • 3. Mat Schaffergithub.com/matschaffer@matschaffer
  • 4. (for hire)
  • 5. • Linux System Administration• Ruby on Rails• Chef• Chef on Win2k3 via Cygwin
  • 6. You
  • 7. Your CM
  • 8. Expensive ($2k-$3k) Hand made 12.5 hours
  • 9. $850Heavily Automated 1.5 hours
  • 10. 250 early car companies failed by 1930*“Most tech companies are essentially American auto companies pre-Ford.” - Trotter Cashion
  • 11. Chef
  • 12. (Chef server) $ chef-server $ chef-client my_cookbook my_cookbook my_cookbook $ chef-client my_cookbook ├── README.rdoc ├── attributes ├── definitions ├── files │   └── default ├── libraries ├── metadata.rb ├── providers ├── recipes │   └── default.rb ├── resources └── templates └── defaultb
  • 13. node rolecookbook
  • 14. Step 1: Get a Chef server
  • 15. http://manage.opscode.com
  • 16. http://devops.mashion.net/chef-install
  • 17. Step 2: Get some cookbooks
  • 18. Cookbooks?
  • 19. http://community.opscode.com
  • 20. github.com/matschaffer/ chef-loves-windows Thanks toDoug MacEachern (VMware) &Seth Chisamore (OpsCode)
  • 21. git clone https://github.com/matschaffer/chef-loves-windows.gitcd chef-loves-windows### configure knifeknife cookbook upload -afor ROLE in roles/*.rb; do knife role from file $ROLE;done
  • 22. Step 3: Prepare a server
  • 23. WinRMREM Configure itwinrm quickconfig -qREM A chef run uses some memory, let it.winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"}REM A chef run also takes some time, let it.winrm set winrm/config @{MaxTimeoutms="1800000"}REM For dev/testing allow unencrypted basic authwinrm set winrm/config/service @{AllowUnencrypted="true"}winrm set winrm/config/service/auth @{Basic="true"}
  • 24. Or SSHWinSSHDCygwinFreeSSHd
  • 25. github.com/opscode/knife-windows gem install knife-windows knife bootstrap windows winrm $HOST -r “role[$ROLE]” -x Administrator -P $PASSWORD knife winrm -m $HOST -x Administrator -P $PASSWORD ‘chef-client -c c:/chef/client.rb’ knife bootstrap windows ssh $HOST -r “role[$ROLE]” -x Administrator -i $KEY knife ssh -m $HOST -x Administrator -i $KEY ‘chef-client -c c:/chef/client.rb’
  • 26. C:> w32tm /resync$ ntpdate pool.ntp.org
  • 27. 42!
  • 28. Wrap-UP• Automation can save your business• CM is a key part of your stack• Opscode.com and EC2 is all you need• Yes, it works on windows
  • 29. github.com/matschaffer@matschaffer Thank you questions?

×