1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-12 21:24:00 +00:00

Add host connectivity and Docker version check

This commit is contained in:
Sebastiaan van Steenis
2017-12-01 22:06:13 +01:00
parent fa3e30a6dc
commit bd8a966ce6
4 changed files with 43 additions and 11 deletions

View File

@@ -12,18 +12,18 @@ import (
func (c *Cluster) TunnelHosts() error {
for i := range c.EtcdHosts {
if err := c.EtcdHosts[i].TunnelUp(); err != nil {
return fmt.Errorf("Failed to set up SSH tunneling for Etcd hosts: %v", err)
return fmt.Errorf("Failed to set up SSH tunneling for Etcd host [%s]: %v", c.EtcdHosts[i].Address, err)
}
}
for i := range c.ControlPlaneHosts {
err := c.ControlPlaneHosts[i].TunnelUp()
if err != nil {
return fmt.Errorf("Failed to set up SSH tunneling for Control hosts: %v", err)
return fmt.Errorf("Failed to set up SSH tunneling for Control host [%s]: %v", c.ControlPlaneHosts[i].Address, err)
}
}
for i := range c.WorkerHosts {
if err := c.WorkerHosts[i].TunnelUp(); err != nil {
return fmt.Errorf("Failed to set up SSH tunneling for Worker hosts: %v", err)
return fmt.Errorf("Failed to set up SSH tunneling for Worker host [%s]: %v", c.WorkerHosts[i].Address, err)
}
}
return nil