-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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: Add ability to skip chef registration #9127
provisioner/chef: Add ability to skip chef registration #9127
Conversation
This change allows a user to skip the bootstrap stage for a machine.
Thanks for the PR @samdunne LGTM! |
I wonder if this can be used in conjunction with the People have asked about this a lot, so if it's now possible (or even if it's super close!) it'd be great to be able to talk about this a bit in the docs for the Chef provisioner! |
@apparentlymart I don't think the It's not much work to add a resource which could manage Next to that if you create the Having that said, I think we already a solution in place since PR #8577 added a new option to So it will still not properly cleanup |
Oh right... I had forgotten about the "client" object... I'm pretty rusty on Chef since these days I'm only using chef-solo[1]. Now that you make me think about the client private keys, it makes me think instead about a secret backend for Vault that registers a client and returns its key, which could be securely passed to the server using response wrapping... but that's far outside the scope of what we're discussing here, so I'll take that away and think about it some more. 😀 [1] Funnily enough, our abandoning of Chef server was largely because we had no way to deregister servers once they are destroyed, and we were accumulating hundreds of stale node and client objects in the Chef server due to the fact that most of our servers only live for one or two days before they get replaced by a fresh one with a new image. |
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. |
This change allows a user to skip the bootstrap stage for a machine.
A machine might self register on boot for use outside of terraform. In this case we don't want to recreate the client but just skip the registration as this is done already.