Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadInventory ¶
func LoadInventory(f string) (server.InventoryConfiguration, []*server.Host, map[string]interface{}, error)
LoadInventory loads inventory from a yaml file
Types ¶
type Host ¶
type Host struct { Network string `yaml:"network,omitempty"` ID string `yaml:"id,omitempty"` Labels []string `yaml:"labels,omitempty"` Properties map[string]string `yaml:"properties,omitempty"` Address string `yaml:"address,omitempty"` Addresses []struct { Address string `yaml:"address"` Name string `yaml:"name"` } `yaml:"addresses"` SSH *SSH `yaml:"ssh,omitempty"` Configuration interface{} `yaml:"configuration,omitempty"` }
Host defines a YAML host
type Inventory ¶
type Inventory struct { PrivateKeyFile string `yaml:"privateKey,omitempty"` Passphrase string `yaml:"passphrase,omitempty"` Configuration interface{} `yaml:"configuration,omitempty"` Hosts []Host `yaml:"hosts,omitempty"` Labels map[string][]string `yaml:"labels,omitempty"` }
Inventory contains the hosts and labels as parsed from YML
Click to show internal directories.
Click to hide internal directories.