Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Automating the Cloud (Windows)

Automating the Cloud (Windows)

A talk about why and how to use Chef to automate your stack with a slant toward Windows usage.

Mat Schaffer

June 03, 2012
Tweet

More Decks by Mat Schaffer

Other Decks in Technology

Transcript

  1. Our agenda • Me • You • Old cars •

    How Chef works • Setting up Chef • An Example deployment
  2. You

  3. “Most tech companies are essentially American auto companies pre-Ford.” -

    Trotter Cashion 250 early car companies failed by 1930*
  4. “... continuous delivery will move from being a competitive advantage

    to being a prerequisite for survival.” - Jez Humble
  5. (Chef server) b my_cookbook $ chef-client $ chef-client my_cookbook my_cookbook

    $ chef-server my_cookbook ├── README.rdoc ├── attributes ├── definitions ├── files │ └── default ├── libraries ├── metadata.rb ├── providers ├── recipes │ └── default.rb ├── resources └── templates └── default
  6. WinRM # Configure it winrm quickconfig -q # A chef

    run uses some memory, let it. winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}' # A chef run also takes some time, let it. winrm set winrm/config '@{MaxTimeoutms="1800000"}' # For dev/testing allow unencrypted basic auth winrm set winrm/config/service '@{AllowUnencrypted="true"}' winrm set winrm/config/service/auth '@{Basic="true"}'
  7. gem install knife-windows knife bootstrap windows winrm $HOST -r “role[$ROLE]”

    \ -x Administrator -P $PASSWORD -N $NAME 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 -N $NAME knife ssh -m $HOST -x Administrator -i $KEY \ ‘chef-client -c c:/chef/client.rb’ github.com/opscode/knife-windows
  8. Wrap-UP • Automation can save your business • CM is

    a key part of your stack • You can get started today with AWS & OpsCode Chef