ironic_python_agent.inject_files module¶
Implementation of the inject_files deploy step.
-
ironic_python_agent.inject_files.
find_partition_with_path
(path, device=None)[source]¶ Find a partition with the given path.
- Parameters
path – Expected path.
device – Target device. If None, the root device is used.
- Returns
A context manager that will unmount and delete the temporary mount point on exit.
-
ironic_python_agent.inject_files.
inject_files
(node, ports, files, verify_ca=True)[source]¶ A deploy step to inject arbitrary files.
- Parameters
node – A dictionary of the node object
ports – A list of dictionaries containing information of ports for the node
files – See ARGSINFO.
verify_ca – Whether to verify TLS certificate.
- Raises
InvalidCommandParamsError