Generate dynamic data from external sources with inventory plugins
Automation controller uses inventory plugins to dynamically generate inventory data from external sources. These plugins enable automation controller to integrate with cloud providers, virtualization platforms, and other external systems to retrieve up-to-date information about managed nodes.
Inventory updates use dynamically-generated YAML files which are parsed by their inventory plugin. In automation controller, you can provide the inventory plugin configuration directly to automation controller using the inventory source source_vars for the following inventory sources:
- Amazon Web Services EC2
- Google Compute Engine
- Microsoft Azure Resource Manager
- VMware vCenter
- VMWare ESXI
- Red Hat Satellite 6
- Red Hat Lightspeed
- OpenStack
- Red Hat Virtualization
- Red Hat Ansible Automation Platform
- Terraform State
- OpenShift Virtualization
Newly created configurations for inventory sources contain the default plugin configuration values. If you want your newly created inventory sources to match the output of a legacy source, you must apply a specific set of configuration values for that source. To ensure backward compatibility, automation controller uses "templates" for each of these sources to force the output of inventory plugins into the legacy format.
For more information about sources and their templates, see Supported inventory plugin templates.
source_vars that contain plugin: xxx.yyy.zzz as a top-level key are replaced with the fully-qualified inventory plugin name at runtime based on the InventorySource source.
For example, if you select ec2 for the InventorySource then, at run time, the plugin is set to amazon.aws.aws_ec2.
Add permissions to inventories Copy linkLink copied!
Use the following procedure to add permissions to inventories:
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
- From the navigation panel, select .
- Select a template, and in the User Access or Team Access tab, click Add roles.
- Select a user or team to add and click Next.
- Select the checkbox next to a name to add one or more users or teams from the list as members.
- Click Next.
- Select the roles you want the selected users or teams to have. Different resources have different options available.
- Click Finish to apply the roles to the selected users or teams and to add them as members. The updated roles assigned for each user and team are displayed.
Remove a permission Copy linkLink copied!
Learn how to remove specific permissions from a user associated with a resource. Disassociating a role restricts a user’s access to functionalities or data they no longer need.
Procedure Copy linkLink copied!
Add groups to inventories Copy linkLink copied!
You can add groups to standard inventories in automation controller to organize hosts.
About this task Copy linkLink copied!
Inventories are divided into groups, which can contain hosts and other groups. Groups are only applicable to standard inventories and are not a configurable directly through a Smart Inventory. You can associate an existing group through hosts that are used with standard inventories.
The following actions are available for standard inventories:
- Create a new Group
- Create a new Host
- Run a command on the selected Inventory
- Edit Inventory properties
- View activity streams for Groups and Hosts
- Obtain help building your Inventory
Inventory sources are not associated with groups. Spawned groups are top-level and can still have child groups. All of these spawned groups can have hosts.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
When you have added a group to a template, the Group Details page is displayed.
Add groups within groups Copy linkLink copied!
You can create a hierarchy of groups by adding groups within groups. This allows you to create nested groupings of hosts for easier management and organization.
About this task Copy linkLink copied!
When you have added a group to a template, the Group Details page is displayed.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
If you select to add an existing group, available groups appear in a separate selection window. When you select a group, it is displayed in the list of groups associated with the group.
- To configure additional groups and hosts under the subgroup, click the name of the subgroup from the list of groups and repeat the steps listed before.
View or edit inventory groups Copy linkLink copied!
The groups list view displays all your inventory groups, or you can filter it to only display the root groups. An inventory group is considered a root group if it is not a subset of another group.
You can delete a subgroup without concern for dependencies, because automation controller looks for dependencies such as child groups or hosts. If any exist, a confirmation window displays for you to select whether to delete the root group and all of its subgroups and hosts; or to promote the subgroups so they become the top-level inventory groups, along with their hosts.
Add hosts to inventory groups Copy linkLink copied!
You can add hosts to an inventory either by creating new hosts or by associating existing hosts with the inventory.
About this task Copy linkLink copied!
You can configure hosts for the inventory and for groups and groups within groups.