-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
ssh.keep_alive: Add option to add the ssh keep alive option #92
base: master
Are you sure you want to change the base?
Conversation
There's a typo in the commit message: |
We have an issue where sometimes the ssh connection is killed. this happens due to puppet changing the sshd keep alive settings while beaker is still running. This patch adds the ability for users to add ssh_keep_alive to the host config to ensure we send keep alive packets every 5 seconds
fixed |
@@ -53,6 +53,7 @@ def make_vfile(hosts, options = {}) | |||
hosts.each do |host| | |||
host.name.tr!('_', '-') # Rewrite Hostname with hyphens instead of underscores to get legal hostname | |||
set_host_default_ip(host) | |||
v_file << " c.ssh.keep_alive = true\n" if host['ssh_keep_alive'] == true |
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.
oh that's neat. I'm wondering if we should enable it by default/always?
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.
Personally i think it would be a safe enough change to make this the default but will wait to see if others have a view
We have an issue where sometimes the ssh connection is killed. this happens due to puppet changing the sshd keep alive settings while beaker is still running.
This patch adds the ability for users to add ssh_keep_alive to the host config to ensure we send keep alive packets every 5 seconds