-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pulling together existing PRs for windows support #150
Conversation
$username="#{instance.transport[:username]}" | ||
$password="#{instance.transport[:password]}" | ||
"Creating static user: $username" >> $logfile | ||
& net.exe user /y /add $username $password >> $logfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this silently fail if the user already exists? Thinking about baked AMIs, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea - can I get some help from @smurawski or @afiune?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
net user will add or modify existing accounts, so this would re-set the password to whatever test-kitchen thinks it should be for that user account. This could break things if that user account was set up in application pools or something, but that just means you shouldn't run test-kitchen's transport as a user doing some other duty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'm going to leave this behavior in as the default under the assumption that users won't have an image with the TK user pre-baked. If they do, they can write their own custom user data.
026fa81
to
a37af1d
Compare
LGTM 👍 |
|
||
### New Features | ||
|
||
* Added support for managing Windows hosts in AWS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tyler-ball could you put our usernames against these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely! Thanks for the reminder and all the great contributions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for helping to pull this together!
a37af1d
to
38114ae
Compare
Just tested. This looks good.. Thanks @tyler-ball for pushing this and make it happen (for real!) .. 😄 |
Pulling together existing PRs for windows support
Checklist of items (copied from #133)
amis.json
Store generated admin password and pass it to RDP command when runningkitchen login
create
methodNote: The only way I could see to store a password in the
.rdp
file is to encrypt it using a microsoft-only DLLDepends on test-kitchen/test-kitchen#736
Replaces #96
Replaces #133
Includes #134
\cc @fnichol @zl4bv