This document discusses using Chef to automate configuration management on Windows servers. It provides an overview of Chef and how it works, including the main components of nodes, roles, and cookbooks. It then outlines the basic steps to set up Chef including installing the Chef server, uploading cookbooks, and preparing Windows servers to work with Chef using WinRM or SSH. Finally, an example deployment of a Node.js application using Chef on Windows is described.
22. git clone
https://github.com/matschaffer/chef-loves-windows.git
cd chef-loves-windows
### configure knife
knife cookbook upload -a
for ROLE in roles/*.rb; do
knife role from file $ROLE;
done
24. WinRM
REM Configure it
winrm quickconfig -q
REM 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 auth
winrm set winrm/config/service @{AllowUnencrypted="true"}
winrm set winrm/config/service/auth @{Basic="true"}