fuel-library/deployment/puppet/nailgun/templates/root_ssh_config.erb
Matthew Mosesohn a1109ac546 Refactor root ssh config, add admin net and domain to list of host nets
SSH config for root user should use key auth regardless of
hostname. This enables deployment to hosts that have IP addresses
outside of RFC 1918 ranges.

Host network should include admin network expressed by wildcard.
Added extra_admin_networks and Fuel DNS domain in the list as well.

Added new function ipcalc_network_wildcard

Change-Id: I21501feb9e2f9cce83600596889f3f9b89174310
Closes-Bug: #1491912
Co-Authored-By: Dmitry Ilyin <dilyin@mirantis.com>
2015-09-04 19:54:37 +03:00

15 lines
486 B
Plaintext

Host *
IdentityFile ~/.ssh/bootstrap.rsa
IdentityFile ~/.ssh/id_rsa
Host *.<%= @dns_domain %> node-* controller-* compute-* storage-* 10.* 192.168.* 172.30.* 172.31.* 172.2?.* 172.1?.* <%= @admin_network %> <%
if @extra_networks.is_a?(Hash)
@extra_networks.each do |netname, net| -%>
<%= scope.function_ipcalc_network_wildcard([net['ipaddress'],net['netmask']]) %><%
end
end %>
CheckHostIP no
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
AddressFamily inet