-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Terraform action hanging forever on prompt for sudo on step Cleanup user key...
#8932
Comments
Cleanup user key...
Cleanup user key...
You can modify the username used to connect for the chef provisioner by adding the provisioner connections stanza to the chef provisioner block: Using a username other than the |
The default for |
Hmm... I will have to dive into that one and see if we can work around that... Will come back on this one shortly. |
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. |
As part of the new TF release (0.7.4) the option to recreate a chef client was added (
recreate_client = true
). I had to tweak thechef provisioner
settings a bit, replacingvalidation_client_name
&validation_key
withuser_name
&user_key
.After creating and provisioning a node, terraform attempts to cleanup the user keys it used during the first run. The command used for that is ran as the
ubuntu
user withsudo
.The problem is, that as a part of our provisioning, we remove the
ubuntu
user fromsudoers
, causing a prompt for sudo password, which will never time out and never finish. Here is some output from both a failure and a successful run:Failure:
Successful run:
Terraform Version
0.7.4
Is there a way around it using terraform while keeping our current chef logic? In the meantime I must keep using version 0.7.3.
The text was updated successfully, but these errors were encountered: