Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct {
Name string `json:"name"`
Host string `yaml:"host"`
IsLocal bool
Vars map[string]interface{}
Groups map[string]string `yaml:"groups"`
Config interface{} // SSH configuration or other host-specific config
}
Host represents a single host in the inventory
type Inventory ¶
type Inventory struct {
Hosts map[string]*Host `yaml:"all"`
Vars map[string]interface{} `yaml:"vars"`
Groups map[string]*Group `yaml:"-"` // Groups are parsed manually from top-level keys
Plugin string `yaml:"plugin"`
}
Inventory represents the complete inventory structure
func (*Inventory) GetHostByName ¶
GetHostByName returns a host by name from the inventory
func (*Inventory) GetInitialFactsForHost ¶
GetInitialFactsForHost gathers and layers facts for a specific host from the inventory. It applies global inventory vars, then group vars, then host-specific vars.
Click to show internal directories.
Click to hide internal directories.