orchestro.inventory package#
Submodules#
orchestro.inventory.orche module#
- class orchestro.inventory.orche.InventoryModule[source]#
Bases:
BaseInventoryPluginProcess and update Ansible inventory from Orche objects.
- 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.
- 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.
- set_value(entity: str, varname: str, value: Any) None[source]#
Perform the operations related to the Ansible inventory.
- Parameters:
entity – What entity to use for variable context.
varname – Name of variable which will be created.
value – Value to popualte in the created variable.
- 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.