It would be useful to have a flag that can be turned on in the chef provisioner to run the chef client in local mode. Sometimes there are cases when a checkin to the chef server is not wanted.
Does this functionality make sense and would there be much work involved to get this to work?
@jmreicha yeah, think that makes sense... Don't think it's that much work, but it will need a few tweaks and some good testing to get it working properly.
I would find a chef-zero/local provisioner helpful as well. Currently I am building AMI's using packer/chef-zero and orchestrating them using terraform. It would be nice to have the ability to make small changes to the attributes/run_list directly from terraform.
I would love to help with testing if someone takes a pass at adding the feature.
Also thanks for implementing the Chef provisioner in the first place @svanharmelen !
I'm closing this one as "would fix" for the time being... It turns out this would have a reasonable impact on the current Chef provisioner and would take some more time then first expected to build and test.
It's still doable, but it's more then likely not going to happen any time soon. Of course if anyone out there is up for adding the needed code, I would be more then happy to review and merge a PR for this!
If someone feels like this one shouldn't be close for some reason, then by all means feel free to reopen the issue! Thanks!
Chef Zero would be very useful! :boat:
Perhaps it would be more straightforward to have a separate provisioner specifically for chef-zero, like Packer does. I expect it would have a pretty similar interface and might even share some implementation, but keeping it separate allows us to avoid conflicting design constraints.
Yes, I think a separate chef-zero provisioner would be nice.
Howdy. My infrastructures for several clients are chef-zero (i.e. chef-client in local mode). Here's to having this fully supported in Terraform! :+1:
any updates on this request or workarounds? I saw this workaround here:
https://github.com/joewww/ci-cd/blob/master/terraform/main.tf
For those who're looking for a way to use chef-solo on terraform, you can now use these 2 plugins :
https://github.com/Mwea/terraform-provisioner-chef-solo
https://github.com/Mwea/terraform-provider-chef-solo
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.
Most helpful comment
Yes, I think a separate chef-zero provisioner would be nice.