orchestro.inventory package#

Submodules#

orchestro.inventory.orche module#

Functions and routines associated with Enasis Network Orchestrations.

This file is part of Enasis Network software eco-system. Distribution is permitted, for more information consult the project license file.

class orchestro.inventory.orche.InventoryModule[source]#

Bases: BaseInventoryPlugin

Process and update Ansible inventory from Orche objects.

add_child(*args: Any, **kwargs: Any) None[source]#

Perform the operations related to the Ansible inventory.

Parameters:
  • args – Positional arguments passed for downstream.

  • kwargs – Keyword arguments passed for downstream.

add_group(*args: Any, **kwargs: Any) None[source]#

Perform the operations related to the Ansible inventory.

Parameters:
  • args – Positional arguments passed for downstream.

  • kwargs – Keyword arguments passed for downstream.

add_host(*args: Any, **kwargs: Any) None[source]#

Perform the operations related to the Ansible inventory.

Parameters:
  • args – Positional arguments passed for downstream.

  • kwargs – Keyword arguments passed for downstream.

build_orche() Orche[source]#

Construct instances using the configuration parameters.

property dumped: dict[str, Any]#

Return the facts about the attributes from the instance.

Returns:

Facts about the attributes from the instance.

parse(inventory: InventoryData, loader: DataLoader, path: str, cache: bool = True) None[source]#

Process and update Ansible inventory from Orche objects.

Parameters:
  • inventory – Reference to Ansible inventory object.

  • loader – Reference for the Ansible loader object.

  • path – Value which represents source of inventory.

  • cache – Indicates taht internal cache is enabled.

parse_orche() None[source]#

Process and update Ansible inventory from Orche objects.

parse_paths() None[source]#

Process and update Ansible inventory from Orche objects.

set_value(*args: Any, **kwargs: Any) None[source]#

Perform the operations related to the Ansible inventory.

Parameters:
  • args – Positional arguments passed for downstream.

  • kwargs – Keyword arguments passed for downstream.

show_cliargs() None[source]#

Show command line arguments that were passed to Ansible.

show_confirm() None[source]#

Require confirmation from the user in order to proceed.

verify_file(path: str) bool[source]#

Perform advanced validation on the parameters provided.

Parameters:

path – Complete or relative path to the YAML file.

Returns:

Boolean indicating the parameters are valid.

Module contents#

Functions and routines associated with Enasis Network Orchestrations.

This file is part of Enasis Network software eco-system. Distribution is permitted, for more information consult the project license file.