SolarWinds dynamic inventory
To create and manage device inventory via plugin, several steps are required. This guide covers the SolarWinds NCM (Network Configuration Manager) plugin.
Related reading: SolarWinds NCM
Install the required Ansible collections
For SolarWinds NCM, install the following two Ansible collections using ansible-galaxy:
itential-core-1.0.0.tar.gz
itential-plugins-1.0.0.tar.gz
Add the SolarWinds plugin config file
Configure the SolarWinds NCM plugin by creating an inventory file in the inventory directory found on a typical IAG server at the following location:
/opt/automation-gateway/ansible/inventory/solarwinds.yml
This example enables the SolarWinds NCM plugin.
Configure Ansible to use the SolarWinds plugin
Configure Ansible to use this plugin as the inventory source by using the following configuration. The Ansible config file is typically found on an IAG server at the following location:
/etc/ansible/ansible.cfg
Troubleshooting
Plugin can’t connect to SolarWinds NCM
Refer to SolarWinds Platform Release Notes: In the SolarWinds 2023.1 release, you can continue using port 17778. However, it is being deprecated and will not be supported in a future version.
Navigate to the advanced global settings page located at:
<SolarwindsURL>/Orion/Admin/AdvancedConfiguration/Global.aspx
Inspect the following endpoint port flags:
DisableSwisRestEndpointOnPort17774DisableSwisRestEndpointOnPort17778
Passwords not appearing
Check the settings. If you set the inventory file use_connection_profiles flag to true, and only ansible_user has a value (but ansible_password does not), try the following:
- Log in to SolarWinds using an
adminaccount. - Navigate to the advanced global settings page located at
<SolarwindsURL>/Orion/Admin/AdvancedConfiguration/Global.aspx. - Uncheck the flag
HideSwisConnectionProfilePasswordsto expose inventory passwords to the plugin. - Save the settings.