Documentation ¶
Overview ¶
Package inventory implements various plugins to instantiate and populate a gornir.Inventor object
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FromYAML ¶
type FromYAML struct {
HostsFile string
}
FromYAML satisfies the InventoryPlugin interface for YAML files.
func (FromYAML) Create ¶
Create parses the content of a YAML file following the same structure as the structs, but in lower case to create an Inventory. For instance:
dev1.group_1: port: 22 hostname: dev1.group_1 username: root password: docker dev2.group_1: port: 22 hostname: dev2.group_1 username: root password: docker
Click to show internal directories.
Click to hide internal directories.