1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 15:06:23 +00:00

Bastion host

This commit is contained in:
galal-hussein
2018-05-09 00:30:50 +02:00
parent a43d47b240
commit aff01a9267
8 changed files with 112 additions and 18 deletions

View File

@@ -72,7 +72,10 @@ func (c *Cluster) InvertIndexHosts() error {
newHost.ToAddLabels[k] = v
}
newHost.IgnoreDockerVersion = c.IgnoreDockerVersion
if c.BastionHost.Address != "" {
// Add the bastion host information to each host object
newHost.BastionHost = c.BastionHost
}
for _, role := range host.Role {
logrus.Debugf("Host: " + host.Address + " has role: " + role)
switch role {