- 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>
}
hosts['compute'].append(value['host'])
- return {'hosts': hosts, 'hosts_meta': hosts_meta}
+ return {'hosts': hosts, 'hosts_meta': hosts_meta, 'proxy_jump': False}
def main():
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
--- /dev/null
+##############################################################################
+# Copyright (c) 2018 ZTE Corporation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+proxy_jump: True