waft.system.nodes.rhel_node module

class waft.system.nodes.rhel_node.RedHatNode(client: ClientBase)

Bases: LinuxNode

Node for RedHat based platforms

get_package_manager_repos() list[str]

Return dictionary of repo filenames and associated URLs

package_manager: str = 'dnf'
package_manager_repo_dir: PurePosixPath = PurePosixPath('/etc/yum.repos.d')
platform: Platforms = 'rhel'
run_dig(domain: str, dig_params: list[str] | None = None) Result

Generic method that will run a dig command from the node

Parameters:
  • domain – domain to run query against e.g. example.com

  • dig_params – valid dig parameters e.g. +short

uninstall_package(package_name: str, full_purge=True)

Uninstall package with given name

Parameters:
  • package_name – String name of package to be uninstalled

  • full_purge – Boolean indicating if all associated files should be removed upon uninstalling the package