awx_plugins.inventory.plugins module

class awx_plugins.inventory.plugins.PluginFileInjector

Bases: object

_get_shared_env(inventory_update, private_data_dir, private_data_files)

By default, we will apply the standard managed injectors.

base_injector = None
build_env(inventory_update, env, private_data_dir, private_data_files)
build_plugin_private_data(inventory_update, private_data_dir)
build_private_data(inventory_update, private_data_dir)
collection = None
collection_migration = '2.9'
property filename: str

Inventory filename for using the inventory plugin This is created dynamically, but the auto plugin requires this exact naming.

get_plugin_env(inventory_update, private_data_dir, private_data_files)
classmethod get_proper_name() str | None

Return an FQRN for the plugin.

Return type:

str | None

Returns:

Plugin’s fully-qualified resource name.

inventory_as_dict(inventory_update, private_data_dir)
inventory_contents(inventory_update, private_data_dir)

Returns a string that is the content for the inventory file for the inventory plugin.

namespace = None
plugin_description = None
plugin_name = None
use_fqcn = False
class awx_plugins.inventory.plugins.azure_rm

Bases: PluginFileInjector

base_injector = 'managed'
collection = 'azcollection'
get_plugin_env(*args, **kwargs)
namespace = 'azure'
plugin_description = 'Microsoft Azure Resource Manager'
plugin_name = 'azure_rm'
class awx_plugins.inventory.plugins.constructed

Bases: PluginFileInjector

build_env(*args, **kwargs)
collection = 'builtin'
namespace = 'ansible'
plugin_description = 'Template additional groups and hostvars at runtime'
plugin_name = 'constructed'
class awx_plugins.inventory.plugins.controller

Bases: PluginFileInjector

base_injector = 'template'
collection = 'awx'
namespace = 'awx'
plugin_description = 'Red Hat Ansible Automation Platform'
plugin_name = 'tower'
class awx_plugins.inventory.plugins.controller_supported

Bases: PluginFileInjector

base_injector = 'template'
collection = 'controller'
namespace = 'ansible'
plugin_description = 'Supported Red Hat Ansible Automation Platform'
plugin_name = 'tower'
class awx_plugins.inventory.plugins.ec2

Bases: PluginFileInjector

base_injector = 'managed'
collection = 'aws'
get_plugin_env(*args, **kwargs)
namespace = 'amazon'
plugin_description = 'Amazon EC2'
plugin_name = 'aws_ec2'
class awx_plugins.inventory.plugins.gce

Bases: PluginFileInjector

base_injector = 'managed'
collection = 'cloud'
get_plugin_env(*args, **kwargs)
inventory_as_dict(inventory_update, private_data_dir)
namespace = 'google'
plugin_description = 'Google Compute Engine'
plugin_name = 'gcp_compute'
class awx_plugins.inventory.plugins.insights

Bases: PluginFileInjector

base_injector = 'template'
collection = 'insights'
inventory_as_dict(inventory_update, private_data_dir)
namespace = 'redhatinsights'
plugin_description = 'Red Hat Insights'
plugin_name = 'insights'
use_fqcn = True
class awx_plugins.inventory.plugins.insights_supported

Bases: PluginFileInjector

base_injector = 'template'
collection = 'insights'
inventory_as_dict(inventory_update, private_data_dir)
namespace = 'redhat'
plugin_description = 'Supported Red Hat Insights'
plugin_name = 'insights'
use_fqcn = True
class awx_plugins.inventory.plugins.openshift_virtualization

Bases: PluginFileInjector

base_injector = 'template'
collection = 'core'
namespace = 'kubevirt'
plugin_description = 'OpenShift Virtualization'
plugin_name = 'kubevirt'
use_fqcn = True
class awx_plugins.inventory.plugins.openshift_virtualization_supported

Bases: PluginFileInjector

base_injector = 'template'
collection = 'openshift_virtualization'
namespace = 'redhat'
plugin_description = 'Supported OpenShift Virtualization'
plugin_name = 'kubevirt'
use_fqcn = True
class awx_plugins.inventory.plugins.openstack

Bases: PluginFileInjector

_get_clouds_dict(inventory_update, cred, private_data_dir)
build_plugin_private_data(inventory_update, private_data_dir)
collection = 'cloud'
get_plugin_env(inventory_update, private_data_dir, private_data_files)
namespace = 'openstack'
plugin_description = 'OpenStack'
plugin_name = 'openstack'
class awx_plugins.inventory.plugins.rhv

Bases: PluginFileInjector

Ovirt uses the custom credential templating, and that is all.

base_injector = 'template'
collection = 'ovirt'
initial_version = '2.9'
namespace = 'ovirt'
plugin_description = 'Red Hat Virtualization'
plugin_name = 'ovirt'
use_fqcn = True
class awx_plugins.inventory.plugins.rhv_supported

Bases: PluginFileInjector

Ovirt uses the custom credential templating, and that is all.

base_injector = 'template'
collection = 'rhv'
initial_version = '2.9'
namespace = 'redhat'
plugin_description = 'Supported Red Hat Virtualization'
plugin_name = 'ovirt'
use_fqcn = True
class awx_plugins.inventory.plugins.satellite6

Bases: PluginFileInjector

collection = 'foreman'
get_plugin_env(inventory_update, private_data_dir, private_data_files)
namespace = 'theforeman'
plugin_description = 'Red Hat Satellite 6'
plugin_name = 'foreman'
use_fqcn = True
class awx_plugins.inventory.plugins.satellite6_supported

Bases: PluginFileInjector

collection = 'satellite'
get_plugin_env(inventory_update, private_data_dir, private_data_files)
namespace = 'redhat'
plugin_description = 'Supported Red Hat Satellite 6'
plugin_name = 'foreman'
use_fqcn = True
class awx_plugins.inventory.plugins.terraform

Bases: PluginFileInjector

build_plugin_private_data(inventory_update, private_data_dir)
collection = 'terraform'
get_plugin_env(inventory_update, private_data_dir, private_data_files)
inventory_as_dict(inventory_update, private_data_dir)
namespace = 'cloud'
plugin_description = 'Terraform State'
plugin_name = 'terraform_state'
use_fqcn = True
class awx_plugins.inventory.plugins.vmware

Bases: PluginFileInjector

base_injector = 'managed'
collection = 'vmware'
namespace = 'community'
plugin_description = 'VMware vCenter'
plugin_name = 'vmware_vm_inventory'
class awx_plugins.inventory.plugins.vmware_esxi_supported

Bases: PluginFileInjector

base_injector = 'managed'
collection = 'vmware'
namespace = 'vmware'
plugin_description = 'VMware ESXi'
plugin_name = 'esxi_hosts'
use_fqcn = True