Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { Name string Vars map[string]string Hosts map[string]*Host Children map[string]*Group Parents map[string]*Group }
Group represents ansible group
func GroupMapListValues ¶ added in v1.1.0
GroupMapListValues transforms map of Groups into Group list
type Host ¶
Host represents ansible host
func HostMapListValues ¶ added in v1.1.0
HostMapListValues transforms map of Hosts into Host list
type InventoryData ¶
InventoryData contains parsed inventory representation Note: Groups and Hosts fields contain all the groups and hosts, not only top-level
func ParseFile ¶
func ParseFile(f string) (*InventoryData, error)
ParseFile parses Inventory represented as a file
func ParseString ¶
func ParseString(input string) (*InventoryData, error)
ParseString parses Inventory represented as a string
func (*InventoryData) Match ¶
func (inventory *InventoryData) Match(m string) []*Host
Match looks for a hosts that match the pattern
func (*InventoryData) Reconcile ¶
func (inventory *InventoryData) Reconcile()
Reconcile ensures inventory basic rules, run after updates
Click to show internal directories.
Click to hide internal directories.