redhat-cop / aap_utilities

Ansible Collection for automated deployment of AAP and other objects for general use
https://galaxy.ansible.com/infra/aap_utilities
GNU General Public License v3.0
78 stars 47 forks source link

Add SSL variables #40

Closed lshake closed 3 years ago

lshake commented 3 years ago

SSL Certificate Variables for Tower Web, PostgreSQL, Auatomation Hub and Custom CA.

What does this PR do?

Conditional set SSL Certificate and Key values in the Tower installation inventory.

How should this be tested?

Generate valid certificates, and set the following variables.

tower_ah_ssl_cert: ~/certs/{{ tower_ah_server | urlsplit('hostname') }}.crt tower_ah_ssl_key: ~/certs/{{ tower_ah_server | urlsplit('hostname') }}.key tower_ssl_cert: ~/certs/{{ tower_server | urlsplit('hostname') }}.crt tower_ssl_key: ~/certs/{{ tower_server | urlsplit('hostname') }}.key tower_pg_ssl_cert: ~/certs/{{ tower_database_host }}.crt tower_pg_ssl_key: ~/certs/{{ tower_database_host }}.key tower_custom_ca_cert: ~/certs/ca.crt

Certificates should be copied to the host running setup.sh in advance of running the install role (pre_tasks).

Is there a relevant Issue open for this?

NA

Other Relevant info, PRs, etc.

NA