PostgreSQL requirements
Red Hat Ansible Automation Platform 2.6 requires the external (customer supported) databases to have International Components for Unicode (ICU) support. PostgreSQL user passwords are hashed with SCRAM-SHA-256 secure hashing algorithm before storing in the database.
To determine if your automation controller instance has access to the database, you can do so with the command, awx-manage check_db command.
- Automation controller data is stored in the database. Database storage increases with the number of hosts managed, number of jobs run, number of facts stored in the fact cache, and number of tasks in any individual job. For example, a playbook runs every hour (24 times a day) across 250 hosts, with 20 tasks, stores over 800000 events in the database every week.
- If not enough space is reserved in the database, the old job runs and facts must be cleaned on a regular basis. You can clean up from the UI at Automation Execution > Administration > Management Jobs.
PostgreSQL Configurations Copy linkLink copied!
Optionally, you can configure the PostgreSQL database as separate nodes that are not managed by the Red Hat Ansible Automation Platform installer. When the Ansible Automation Platform installer manages the database server, it configures the server with defaults that are generally recommended for most workloads. For more information about the settings you can use to improve database performance, see Tune the PostgreSQL database for optimal performance.
Set up an external database Copy linkLink copied!
Use the following procedure to configure an external PostgreSQL compliant database for use with an Ansible Automation Platform component, for example automation controller, Event-Driven Ansible, automation hub, and platform gateway.
About this task Copy linkLink copied!
- Red Hat Ansible Automation Platform 2.6 requires the external (customer supported) databases to have ICU support.
- When using an external database with Ansible Automation Platform, you must create and maintain that database. Ensure that you clear your external database when uninstalling Ansible Automation Platform.
- Red Hat Ansible Automation Platform 2.6 requires the external (customer supported) databases to have International Components for Unicode (ICU) support.
- During configuration of an external database, you must check the external database coverage. For more information, see Red Hat Ansible Automation Platform Database Scope of Coverage.
Procedure Copy linkLink copied!
Enable mutual TLS (mTLS) authentication Copy linkLink copied!
Enable mutual TLS authentication to secure PostgreSQL database connections with certificate-based verification. This protects against unauthorized access and man-in-the-middle attacks while meeting enterprise security and compliance requirements.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
[all:vars] group and ensure each component has a different TLS certificate and key:
# Automation controller
pgclient_sslcert=/path/to/awx.cert
pgclient_sslkey=/path/to/awx.key
pg_sslmode=verify-full or verify-ca
# Platform gateway
automationgateway_pgclient_sslcert=/path/to/gateway.cert
automationgateway_pgclient_sslkey=/path/to/gateway.key
automationgateway_pg_sslmode=verify-full or verify-ca
# Automation hub
automationhub_pgclient_sslcert=/path/to/pulp.cert
automationhub_pgclient_sslkey=/path/to/pulp.key
automationhub_pg_sslmode=verify-full or verify-ca
# Event-Driven Ansible
automationedacontroller_pgclient_sslcert=/path/to/eda.cert
automationedacontroller_pgclient_sslkey=/path/to/eda.key
automationedacontroller_pg_sslmode=verify-full or verify-ca
Use custom TLS certificates Copy linkLink copied!
Configure the installer to use custom TLS certificates and keys for all services instead of the default self-signed ones by setting the required inventory variables for certificates and keys.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
Receptor certificate considerations Copy linkLink copied!
When using a custom certificate for Receptor nodes, the certificate requires the otherName field specified in the Subject Alternative Name (SAN) of the certificate with the value 1.3.6.1.4.1.2312.19.1.
Receptor does not support the usage of wildcard certificates. Additionally, each Receptor certificate must have the host FQDN specified in its SAN for TLS hostname validation to be correctly performed.
Enable the hstore extension Copy linkLink copied!
The database migration script uses hstore fields to store information, therefore the hstore extension must be enabled in the automation hub PostgreSQL database.
About this task Copy linkLink copied!
This process is automatic when using the Ansible Automation Platform installer and a managed PostgreSQL server.
If the PostgreSQL database is external, you must enable the hstore extension in the automation hub PostgreSQL database manually before installation.
If the hstore extension is not enabled before installation, a failure raises during database migration.
Procedure Copy linkLink copied!
Benchmark storage performance for the Ansible Automation Platform PostgreSQL database Copy linkLink copied!
Use the Flexible I/O Tester (FIO) tool to verify that your storage system meets minimum Ansible Automation Platform PostgreSQL database requirements. FIO benchmarks read and write IOPS performance to help you evaluate storage capabilities.
Before you begin Copy linkLink copied!
- You have installed the Flexible I/O Tester (
fio) storage performance benchmarking tool.To install
fio, run the following command as the root user:# yum -y install fio - You have adequate disk space to store the
fiotest data log files.The examples shown in the procedure require at least 60GB disk space in the
/tmpdirectory:numjobssets the number of jobs run by the command.size=10Gsets the file size generated by each job.
- You have adjusted the value of the
sizeparameter. Adjusting this value reduces the amount of test data.