inventory

package
v0.0.0-...-d18c366 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 8

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

func (f FromYAML) Create() (gornir.Inventory, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL