-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
provisioner/chef: support recreating clients and configuring Chef Vaults #8577
provisioner/chef: support recreating clients and configuring Chef Vaults #8577
Conversation
@svanharmelen I got around to trying this out and ran into SSL issues even though I specified Resource code
Error
|
@jmccann thanks for testing! I totally did not think about supporting the Good find, thx! |
And just to make things clear... Did you only add the I would suggest the latter, but would like to make sure if that is the case? I'm thinking to just always fetch the certificates locally so the |
@svanharmelen I was using either I would only fetch certs of someone specifies I'm guessing you already have thought of the following, but I'll say it anyways. 😛 I think to get the As for the
I'll try to get my cert chain in order tomorrow to finish testing the new code outside of this issue and let you know. I can also test whatever fix you come up with as well once you have one. 😉 |
@jmccann I just got around to updating this PR... I choose a slightly different approach in order to lose the requirement for have So if you could have another go at it to confirm it now also works as expected for you, that would be great! I did run all kinds of tests from both Windows and Linux creating both Windows and Linux instances and all seems to work perfectly for me. But I don't have a Chef server with certs I don't trust, so verifying that part would be nice. If you're up for it, please test both certificate related options ( Thx! |
@svanharmelen Working on trying it now. Will post back with results once I have them. Thanks! |
@svanharmelen So I ran into the following error:
I think the options being passed for the
Notice I changed
This may have been a change in behavior across different versions of Chef? This was with:
|
@jmccann that weird, as the current (for v12.13.x) Chef documentation says otherwise: https://docs.chef.io/release/12-13/knife_common_options.html
But I double checked, and I'm indeed testing with an older Chef-Client version. So it seems I've been bitten by the docs here 😞 Will update in a few minutes! |
@jmccann updated so it now reads |
@svanharmelen Things seem to be working for me now. 😄 👍 |
@jmccann nice! Thank you very much for starting this up by opening PR #7440 and again sorry for all the delays... And also thanks for helping to verify/test this solution. Really very much appreciated!! @phinze could you do a review on the code itself? Functionally it's tested pretty well by now with all sorts of different setups and with all kind of Chef versions, so that part should be good. |
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.
This LGTM from a code perspective - I haven't tried running any tests however. If you're happy with it from the functional testing perspective (as the comments seems to suggest) @svanharmelen then feel free to merge!
Yes, both me and @jmccann have tested this with various scenarios, so will go ahead and merge this one. Thx! |
@svanharmelen when might we expect this to land in a release version of Terraform? |
Fixes hashicorp#3605 and adds the functionality suggested in PR hashicorp#7440. This PR is using a different appraoch that (IMHO) feels cleaner and (even more important) adds support for Windows at the same time.
As it's now merged, it will be in the very next release... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Fixes #3605 and adds the functionality suggested in PR #7440.
This PR is using a different approach that (IMHO) feels cleaner and (even more important) adds support for Windows at the same time.
Also did some cleaning and (in two files) removed the
pathorcontent
constructions, in order to make the code consistent with the documentation.Lastly I deleted 3 deprecated attributes, as they are deprecated for quite some time now, and I needed to deprecate the newer attributes now as well 😉