Last active
December 19, 2015 06:49
-
-
Save wbingli/5914471 to your computer and use it in GitHub Desktop.
Chef migration template for Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %> |
$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
http://docs.opscode.com/chef/migrate_to_hosted.html
It only provide Linux migration script