Documentation ¶
Index ¶
- type ChildrenGroup
- type HostInventory
- type Inventory
- func (inventory *Inventory) EditInventory(filePath string, password string) (err error)
- func (inventory *Inventory) GetAccessInformation(group string, host string) (username string, password string, sshkey string, sshagent bool, address string, ...)
- func (inventory *Inventory) GetAddress(group string, host string) (string, error)
- func (inventory *Inventory) GetGroupHosts(group string) (groupHosts []string)
- func (inventory *Inventory) GetGroups() (groups []string)
- func (inventory *Inventory) GetPassword(group string, host string) (string, error)
- func (inventory *Inventory) GetSshAgent(group string, host string) (bool, error)
- func (inventory *Inventory) GetSshKey(group string, host string) (string, error)
- func (inventory *Inventory) GetUngroupedHosts() (ungroupedHosts []string)
- func (inventory *Inventory) GetUsername(group string, host string) (string, error)
- type Vars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildrenGroup ¶
type HostInventory ¶
type HostInventory struct { Hosts map[string]Vars `yaml:"hosts"` Children map[string]ChildrenGroup `yaml:"children"` Vars Vars `yaml:"vars"` }
type Inventory ¶
type Inventory struct {
All HostInventory `yaml:"all"`
}
func NewInventory ¶
func (*Inventory) EditInventory ¶
func (*Inventory) GetAccessInformation ¶
func (*Inventory) GetAddress ¶
func (*Inventory) GetGroupHosts ¶
func (*Inventory) GetPassword ¶
func (*Inventory) GetSshAgent ¶
func (*Inventory) GetUngroupedHosts ¶
type Vars ¶
type Vars struct { Username string `yaml:"username,omitempty"` AnsibleUser string `yaml:"ansible_user,omitempty"` Password string `yaml:"password,omitempty"` AnsibleSshPASS string `yaml:"ansible_ssh_pass,omitempty"` SshKey string `yaml:"sshkey,omitempty"` Address string `yaml:"address,omitempty"` AnsibleHost string `yaml:"ansible_host,omitempty"` SshAgent bool `yaml:"sshagent,omitempty"` }
Click to show internal directories.
Click to hide internal directories.