- Save the above file to ~/.chef/windows-bootstrap.erb
- When you go to bootstrap you pass in the arguments:
knife bootstrap windows winrm \
$WINDOWS_HOST \
--node-name windows-build-node-1 \
--winrm-user $WINDOWS_USER \
--winrm-password $WINDOWS_PASSWORD \
--bootstrap-template ~/.chef/windows-bootstrap.erb