Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunNodeInstallCmd ¶
func RunNodeInstallCmd(option NodeInstallOption) (err error)
RunNodeInstallCmd - install node
Types ¶
type Host ¶
type Host struct { AnsibleHostIP net.IP //ssh port AnsibleHostPort int HostID string Role client.HostRule CreateTime time.Time AnsibleSSHPrivateKeyFile string }
Host - ansible host config
type HostConfig ¶
HostConfig - ansible hosts config
func (*HostConfig) AddHost ¶
func (c *HostConfig) AddHost(h *client.HostNode, installConfPath string)
AddHost
func (*HostConfig) Content ¶
func (c *HostConfig) Content() string
Content - return config file content
type NodeInstallOption ¶
type NodeInstallOption struct { HostRole string HostName string InternalIP string RootPass string // ssh login password KeyPath string // ssh login key path NodeID string Stdin io.Reader Stdout io.Writer Stderr io.Writer // contains filtered or unexported fields }
NodeInstallOption
Click to show internal directories.
Click to hide internal directories.