1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-18 16:36:41 +00:00

add support for specifc control plane IP per host

This commit is contained in:
moelsayed
2017-10-31 13:39:21 +02:00
committed by galal-hussein
parent cdb956d363
commit 5b730bcf6a
6 changed files with 26 additions and 15 deletions

View File

@@ -10,12 +10,13 @@ type Hosts struct {
}
type Host struct {
IP string `yaml:"ip"`
Role []string `yaml:"role"`
Hostname string `yaml:"hostname"`
User string `yaml:"user"`
DockerSocket string `yaml:"docker_socket"`
DClient *client.Client
IP string `yaml:"ip"`
ControlPlaneIP string `yaml:"control_plane_ip"`
Role []string `yaml:"role"`
Hostname string `yaml:"hostname"`
User string `yaml:"user"`
DockerSocket string `yaml:"docker_socket"`
DClient *client.Client
}
func DivideHosts(hosts []Host) ([]Host, []Host, []Host) {