Skip to content
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

Two config.ssh.pty setting issues with Cloud provisioners #2731

Closed
VMTrooper opened this issue Dec 29, 2013 · 4 comments
Closed

Two config.ssh.pty setting issues with Cloud provisioners #2731

VMTrooper opened this issue Dec 29, 2013 · 4 comments

Comments

@VMTrooper
Copy link

Hello Team,

Here is my Vagrantfile: http://pastebin.com/PBtDSAt8

Issue 1: config.ssh.pty setting is applied globally despite using conditional statements

  • There is a problem with config.ssh.pty = true for Ubuntu VMs as noted in the issue below.
  • I tried to put in an If statement so that the value is only set to true for the CentOS VM that is complaining about tty during Rsync
  • The conditional statement is ignored and the setting is true for all VMs, which leads to issue 2...
  • Honestly, I'm not sure if it is possible for config.* settings to be controlled by conditional statements. Apologies if that's an expected behavior.

Issue 2: "true" setting for Ubuntu VMs leaves the VM hanging indefinitely after shell provisioner completes

  • I have waited up to 10 minutes for the shell provisioner to exit out and move on to the next VM, but it never does.

As a workaround, I'm currently instantiating VMs one-at-a-time and editing the Vagrantfile between each VM boot.

Let me know if you have any further questions,
Trevor

@mitchellh
Copy link
Contributor

For the first issue, you must not set it on the global config, you must set it on the node config directly.

I'll try to repro the second.

@VMTrooper
Copy link
Author

didn't realize that the setting could be local. Thanks! Issue #1 got cleared up when I changed the code to be per box variable that I defined.

Issue #2 is not as critical considering that I can use conditional statements, but it would be nice to address or at least document in case anyone runs into a corner case

@mitchellh
Copy link
Contributor

I'm unable to reproduce the second issue with my shell script. Let me know if you have a simple repro case and i'll take a look.

@VMTrooper
Copy link
Author

Thanks Mitchell. I will try again and post a Vagrantfile that can reproduce the condition.

On Dec 30, 2013, at 3:44 PM, Mitchell Hashimoto notifications@github.com wrote:

I'm unable to reproduce the second issue with my shell script. Let me know if you have a simple repro case and i'll take a look.


Reply to this email directly or view it on GitHub.

@ghost ghost locked and limited conversation to collaborators Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants