opscode/knife-ec2 — pull request #122 by ronnietaylor (2013-07-02 21:01:26+00:00)
Title: Add additional sleep and return password value correctly

This fixes an issue that causes 'knife ec2 server create' to not properly return the password to bootstrap config thus causing the bootstrap to fail after instance creation.

With these minor tweaks I can now run the following single command to provision, bootstrap and run a role.

E.G.

knife ec2 server create -VV \
-I ami-b5bcd2dc \
--flavor=m1.medium \
--groups=quick-start-1 \
--region=us-east-1 \
--ssh-key=mykey-deploy-us-east \
--identity-file=/path/to/.ssh/mykey-deploy-us-east.pem \
--bootstrap-protocol winrm \
--template-file=/path/to/Development/windows-chef-client-msi.erb \
--user-data=/path/to/Development/enable-winrm.ps1 \
--run-list 'role[production-win]' \
--node-name=My_Custom_Node_Name