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 GetAnsibleHostConfig ¶
func GetAnsibleHostConfig(name string) *HostConfig
GetAnsibleHostConfig get config
func (*HostConfig) AddHost ¶
func (c *HostConfig) AddHost(h *client.HostNode, installConfPath string)
AddHost add host
func (*HostConfig) Content ¶
func (c *HostConfig) Content() string
Content return config file content
func (*HostConfig) ContentBuffer ¶
func (c *HostConfig) ContentBuffer() *bytes.Buffer
ContentBuffer content buffer
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 node install option
Click to show internal directories.
Click to hide internal directories.