airgun.entities.contenthost

Module Contents

class airgun.entities.contenthost.ContentHostEntity

Bases: airgun.entities.base.BaseEntity

endpoint_path = /content_hosts
delete(self, entity_name)

Delete existing content host

search(self, value)

Search for specific content host

read_all(self)

Read all values from content host title page

read(self, entity_name, widget_names=None)

Read content host details, optionally read only the widgets in widget_names.

execute_package_action(self, entity_name, action_type, value)

Execute remote package action on a content host

Parameters:
  • entity_name – content host name to remotely execute package action on
  • action_type – remote action to execute. Can be one of 5: ‘Package Install’, ‘Package Update’, ‘Package Remove’, ‘Group Install’ or ‘Group Remove’
  • value – Package or package group group name to remotely install/upgrade/remove (depending on action_type)
Returns:

Returns a dict containing task status details

execute_module_stream_action(self, entity_name, action_type, module_name, stream_version, customize=False, customize_values=None)

Execute remote module_stream action on a content

Parameters:
  • entity_name – content host name
  • action_type – remote action to execute on content host. Action value can be one of them e.g. ‘Enable’, ‘Disable’, ‘Install’, ‘Update’, ‘Remove’, ‘Reset’
  • module_name – Module Stream name to remotely install/upgrade/remove (depending on action_type)
  • stream_version – String with Stream Version of Module
  • customize – Boolean indicating if additional custom action should be called
  • customize_values – Dict with custom actions to run. Mandatory if customize is True
Returns:

Returns a dict containing job status details

search_package(self, entity_name, package_name)

Search for specific package installed in content host

search_module_stream(self, entity_name, module_name, stream_version=None, status='All')

Search for specific package installed in content host

install_errata(self, entity_name, errata_id, install_via=None)

Install errata on a content host

Parameters:
  • name – content host name to apply errata on
  • errata_id – errata id or title, e.g. ‘RHEA-2012:0055’
  • install_via (str) – via which mean to install errata. Available options: “katello”, “rex”, “rex_customize”
Returns:

Returns a dict containing task status details

search_errata(self, entity_name, errata_id, environment=None)

Search for specific errata applicable for content host.

Parameters:
  • entity_name (str) – the content hosts name.
  • errata_id (str) – errata id or title, e.g. ‘RHEA-2012:0055’
  • optional environment (str) – lifecycle environment to filter by.
read_errata_details(self, entity_name, errata_id, environment=None)

Read Details for specific errata applicable for content host.

Parameters:
  • entity_name (str) – the content hosts name.
  • errata_id (str) – errata id or title, e.g. ‘RHEA-2012:0055’
  • optional environment (str) – lifecycle environment to filter by.
export(self)

Export content hosts list.

Return str:path to saved file
add_subscription(self, entity_name, subscription_name)

Add a subscription to content host.

Parameters:
  • entity_name (str) – the content hosts name.
  • subscription_name (str) – The subscription name to add to content host.
update(self, entity_name, values)

Update content host values.

class airgun.entities.contenthost.ShowAllContentHosts

Bases: airgun.navigation.NavigateStep

Navigate to All Content Hosts screen.

VIEW
step(self, *args, **kwargs)
class airgun.entities.contenthost.EditContentHost

Bases: airgun.navigation.NavigateStep

Navigate to Content Host details screen.

Args:
entity_name: name of content host
VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)
class airgun.entities.contenthost.NavigateToErrataDetails

Bases: airgun.navigation.NavigateStep

Navigate to Errata details screen.

Args:
entity_name: name of content host errata_id: id of errata
VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)