Conversation
I removed the tasks for some odd reason.
|
FYI - one of my customers is excited about this change and will be trying it out once it is available. |
There was a problem hiding this comment.
I'd create a helper method for the hints path:
def hints_path
Ohai::Config[:hints_path][0]
end... and use that here so you're not having to dissect an array twice.
Windows blows up if setup_ssh and add_ohai_hint is called.
There was a problem hiding this comment.
Need to add this due to 1.4 tk.
There was a problem hiding this comment.
If username and password are available in the state file (from the driver), you don't need to add them to transport, unless you want to connect with a different account.
There was a problem hiding this comment.
Yeah I'd like to keep this in the readme, but that's good to know. I know with my image i had to put a different administrator password in.
added winrm_wait because winrm.
There was a problem hiding this comment.
Where would this option ever get set? I don't see a configuration option in your driver or the base driver for :disable_ssl_validation
There was a problem hiding this comment.
So it's mentioned in the README, about being turned on ONLY if you know what you're doing. I don't think it's supposed to be used or acknowledged without specific reasons.
There was a problem hiding this comment.
To @smurawski's point, while TK doesn't complain if you pass in configuration options that are not specified, it's good practice to define a default so the code self-documents the fact that options are available.
I'd recommend putting this at the top of your class:
default_config :disable_ssl_validation, falseThat way it's 100% clear what the intention is, and you never have to worry about an edge case where this being nil bites you :)
|
LGTM but odd that winrm flaps at the beginning causing a need for the |
There was a problem hiding this comment.
You could offer windows equivalents of these commands. mkdir could just be "mkdir #{hints_path}" and touch could be " '' > #{hints_path}\\openstack.json" (just off the top of my head.
|
Added this to the readme for #77 |
There was a problem hiding this comment.
I'd suggest making this a little clearer...
Test Kitchen 1.4 supports multiple transports, and transports can be configure globally:
transport:
username: ubuntu
password: mysecretpassword... or per-platform:
platforms:
name: ubuntu-14.04
transport:
password: myrootpassword
name: windows-2012r2
password: myadministratorpassword
This PR is for Windows and Kitchen::Base support.