How to encrypt the PostgreSQL password in automation controller configuration files on Red Hat Ansible Automation Platform?
Issue
- How to encrypt the PostgreSQL password stored in plain text in
/etc/tower/conf.d/postgres.pyon the automation controller? -
After replacing the password with
decrypt_value(get_encryption_key('value'), ...),commands fail with:django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
Environment
- Red Hat® Ansible Automation Platform 2.5 and 2.6
- Automation Controller (RPM-based installation)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.