AAP 2.5, custom credential type, how-to for RPM installs?

I’m trying to install a custom cred type I’m building myself, into AAP 2.5 (non-containerized/non-operator arch).

The archived AWX process here, results in nothing new being added. I’m betting that I have a bug in my python.
Are awx-manage functions logged anywhere? I did search but did not find anyhting.

Will setup_managed_credential_types throw an error if the ‘install’ or ‘import’ fail?

My code tests fine manually.. I did use the AWX example above as my template but perhaps it’s out of date?

My code is here if it helps: delinea_auth_plugin/src/ss_token_plugin/plugin.py at main · cidrbl0ck/delinea_auth_plugin · GitHub

Hello @skeer !

the custom credential type plugin must be added to the python venv that runs the controller, which is on the controller node in /var/lib/awx/venv/awx. Install the plugin to lib/python3.11/site-packages/

But… this has a drawback: the python venv for the controller comes as rpm package which runs a “python -m venv clean” as preinstall script, i.e. whole content of the venv will be removed, including your plugin.

To come over this you can install your plugin to a persistent folder, e.g. in /opt/automation-controller-extensions/ and then add the environment variable PYTHONPATH=/opt/automation-controller-extensions/ to the environment of the systemd service supervisord.service (be sure to use an override and don’t mess with the service definition as it may be overwritten at update).

Hope this helps!
Christian