-
Notifications
You must be signed in to change notification settings - Fork 144
Feature Request: Use TF output for WinRM password in kitchen.yml #379
Comments
Thank you for the feature request. I think it's a reasonable thing to support; I'll try to get to that in the near future. As a work around, you can take advantage of Kitchen's support for interpolation in the configuration file to provide similar behaviour, like the following example:
That should use the |
Possibly related to #317 |
Oh cool, I didn't know you could do that! Thanks! |
I tried your example and had some trouble with it (because...Windows). When I am in the root module directory and I run this (which kitchen would be running in your example above)...
...the stderr says that initialization is required.
...I get the password (and am returned to the root module directory). Also, TF wouldn't accept an empty string for the pw, so I ended up doing kind of a funky Powershell workaround like this:
...which works in irb but not when I put it an ERB or call it from the
I don't know if I'm just missing an escape character or what. Alas, I resorted to creating a template for the
I'm not in love with this approach, but I'm out of time to spend on it. |
@anniehedgpeth it seems that you spend some time on this. In the case of AWS, |
I'm creating a random password for my VM and outputting it like so:
And it would be great to use the TF output of this password for the WinRM backend like so:
But it appears that I need to use either a hard-coded value or an environment variable, which isn't desirable.
Thanks!
The text was updated successfully, but these errors were encountered: