Skip to content

Instantly share code, notes, and snippets.

@wbingli
Last active December 19, 2015 06:49
Show Gist options
  • Save wbingli/5914471 to your computer and use it in GitHub Desktop.
Save wbingli/5914471 to your computer and use it in GitHub Desktop.
Chef migration template for Windows
cmd.exe /C del C:\chef\validation.pem
cmd.exe /C del C:\chef\client.rb
cmd.exe /C del C:\chef\client.pem
> C:\chef\validation.pem (
<%= validation_key %>
)
> C:\chef\client.rb (
echo.require 'win32ole'
echo.WIN32OLE.codepage = WIN32OLE::CP_UTF8
<%= config_content %>
)
> C:\chef\first-boot.json (
<%= run_list %>
)
<%= start_chef %>
@wbingli
Copy link
Author

wbingli commented Jul 3, 2013

http://docs.opscode.com/chef/migrate_to_hosted.html

It only provide Linux migration script

@wbingli
Copy link
Author

wbingli commented Jul 3, 2013

$cp migration .chef/bootstrap
$ knife bootstrap windows winrm  $IP -d migration -p $PORT -N $NAME  -r $ROLE -E $ENVIRONMENT -VV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment