Documentation ¶
Index ¶
- func GenerateInventoryFile(servers []Server) string
- type AnsibleCfg
- type GoAnsiblePkg
- func (a *GoAnsiblePkg) ExecPlayBooks(ctx context.Context) error
- func (a *GoAnsiblePkg) GenerateAnsibleCfg() (string, error)
- func (a *GoAnsiblePkg) GenerateServerInitPlaybook() (string, error)
- func (a *GoAnsiblePkg) SetAnsiblePlaybookBinary(ansiblePlaybookBinary string) *GoAnsiblePkg
- func (a *GoAnsiblePkg) SetCmdRunDir(cmdRunDir string) *GoAnsiblePkg
- func (a *GoAnsiblePkg) SetEnv(key, val string) *GoAnsiblePkg
- func (a *GoAnsiblePkg) SetEnvMap(env map[string]string) *GoAnsiblePkg
- func (a *GoAnsiblePkg) SetInventoryFile(inventoryfile string) *GoAnsiblePkg
- func (a *GoAnsiblePkg) SetLogChan(logchan chan string) *GoAnsiblePkg
- func (a *GoAnsiblePkg) SetLogPrefix(logPrefix string) *GoAnsiblePkg
- func (a *GoAnsiblePkg) SetPlaybooks(playbooks []string) *GoAnsiblePkg
- func (a *GoAnsiblePkg) Write(p []byte) (n int, err error)
- type Kubespray
- func (k *Kubespray) GetClusterPath() string
- func (k *Kubespray) GetDefaultClusterAddons(ctx context.Context) (string, error)
- func (k *Kubespray) GetDefaultClusterAddonsConfig(ctx context.Context) (string, error)
- func (k *Kubespray) GetDefaultClusterConfig(ctx context.Context) (string, error)
- func (k *Kubespray) GetPackagePath() string
- func (k *Kubespray) GetRemoveNodePath() string
- func (k *Kubespray) GetResetPath() string
- func (k *Kubespray) GetScalePath() string
- func (k *Kubespray) GetUpgradePath() string
- type Server
- type ServerInit
- type ServerInitTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateInventoryFile ¶
param servers: list of servers to generate inventory file result: inventory file content
Types ¶
type AnsibleCfg ¶
type GoAnsiblePkg ¶
type GoAnsiblePkg struct { LogChan chan string // contains filtered or unexported fields }
func NewGoAnsiblePkg ¶
func NewGoAnsiblePkg(c *conf.Bootstrap) *GoAnsiblePkg
func (*GoAnsiblePkg) ExecPlayBooks ¶
func (a *GoAnsiblePkg) ExecPlayBooks(ctx context.Context) error
func (*GoAnsiblePkg) GenerateAnsibleCfg ¶
func (a *GoAnsiblePkg) GenerateAnsibleCfg() (string, error)
func (*GoAnsiblePkg) GenerateServerInitPlaybook ¶
func (a *GoAnsiblePkg) GenerateServerInitPlaybook() (string, error)
func (*GoAnsiblePkg) SetAnsiblePlaybookBinary ¶
func (a *GoAnsiblePkg) SetAnsiblePlaybookBinary(ansiblePlaybookBinary string) *GoAnsiblePkg
func (*GoAnsiblePkg) SetCmdRunDir ¶
func (a *GoAnsiblePkg) SetCmdRunDir(cmdRunDir string) *GoAnsiblePkg
func (*GoAnsiblePkg) SetEnv ¶
func (a *GoAnsiblePkg) SetEnv(key, val string) *GoAnsiblePkg
func (*GoAnsiblePkg) SetEnvMap ¶
func (a *GoAnsiblePkg) SetEnvMap(env map[string]string) *GoAnsiblePkg
func (*GoAnsiblePkg) SetInventoryFile ¶
func (a *GoAnsiblePkg) SetInventoryFile(inventoryfile string) *GoAnsiblePkg
func (*GoAnsiblePkg) SetLogChan ¶
func (a *GoAnsiblePkg) SetLogChan(logchan chan string) *GoAnsiblePkg
func (*GoAnsiblePkg) SetLogPrefix ¶
func (a *GoAnsiblePkg) SetLogPrefix(logPrefix string) *GoAnsiblePkg
func (*GoAnsiblePkg) SetPlaybooks ¶
func (a *GoAnsiblePkg) SetPlaybooks(playbooks []string) *GoAnsiblePkg
type Kubespray ¶
type Kubespray struct {
// contains filtered or unexported fields
}
func (*Kubespray) GetClusterPath ¶
func (*Kubespray) GetDefaultClusterAddons ¶
func (*Kubespray) GetDefaultClusterAddonsConfig ¶
func (*Kubespray) GetDefaultClusterConfig ¶
func (*Kubespray) GetPackagePath ¶
func (*Kubespray) GetRemoveNodePath ¶
func (*Kubespray) GetResetPath ¶
func (*Kubespray) GetScalePath ¶
func (*Kubespray) GetUpgradePath ¶
type ServerInit ¶
type ServerInit struct {
Tasks []ServerInitTask `yaml:"tasks"`
}
Click to show internal directories.
Click to hide internal directories.