aboutsummaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles/qtip-generator/files/compute
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2017-12-19 17:26:29 +0800
committerzhihui wu <wu.zhihui1@zte.com.cn>2018-01-09 17:07:47 +0800
commit8cc5df6f9e3222b827397367840fa6423130bb80 (patch)
treea3fe661f1436f927778384a07d07becc8112fdb5 /resources/ansible_roles/qtip-generator/files/compute
parent0436f87ff05b0835e1ed75ee2955f5097e572224 (diff)
Add a judgement to control the proxy jump configuration
- Set a default value(True) to proxy_jump - For MCP, set proxy_jump to False. Because remote node can be directly connected from qtip container without proxy jump. Change-Id: I92214de984a0231ba4ba873f3a60cb12589ade28 Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'resources/ansible_roles/qtip-generator/files/compute')
-rw-r--r--resources/ansible_roles/qtip-generator/files/compute/templates/ssh.cfg2
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/ansible_roles/qtip-generator/files/compute/templates/ssh.cfg b/resources/ansible_roles/qtip-generator/files/compute/templates/ssh.cfg
index 1b7c0183..94acd778 100644
--- a/resources/ansible_roles/qtip-generator/files/compute/templates/ssh.cfg
+++ b/resources/ansible_roles/qtip-generator/files/compute/templates/ssh.cfg
@@ -10,7 +10,9 @@
Host {{ name }}
HostName {{ host.ansible_ssh_host }}
User {{ host.ansible_user }}
+{% if proxy_jump %}
ProxyCommand ssh -o 'ForwardAgent yes' {{ installer_host }} 'ssh-add && nc %h %p'
+{% endif %}
{% endfor %}
{% endraw %} \ No newline at end of file