mirror of
https://github.com/ansible/awx.git
synced 2026-01-26 16:11:30 -03:30
Add 'ca_trust_dir' variable to allow Custom CA sharing between host and containers
This commit is contained in:
parent
4972755ccb
commit
aca74d05ae
@ -95,3 +95,9 @@ pg_port=5432
|
||||
# AWX project data folder. If you need access to the location where AWX stores the projects
|
||||
# it manages from the docker host, you can set this to turn it into a volume for the container.
|
||||
#project_data_dir=/var/lib/awx/projects
|
||||
|
||||
# CA Trust directory. If you need to provide custom CA certificates, supplying
|
||||
# this variable causes this directory on the host to be bind mounted over
|
||||
# /etc/pki/ca-trust in the awx_task and awx_web containers.
|
||||
# NOTE: only obeyed in local_docker install
|
||||
#ca_trust_dir=/etc/pki/ca-trust
|
||||
@ -15,10 +15,16 @@ services:
|
||||
hostname: awxweb
|
||||
user: root
|
||||
restart: unless-stopped
|
||||
{% if project_data_dir is defined %}
|
||||
{% if (project_data_dir is defined) or (ca_trust_dir is defined) %}
|
||||
volumes:
|
||||
{% endif %}
|
||||
{% if project_data_dir is defined %}
|
||||
- "{{ project_data_dir +':/var/lib/awx/projects:rw' }}"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if ca_trust_dir is defined %}
|
||||
- "{{ ca_trust_dir +':/etc/pki/ca-trust:ro' }}"
|
||||
{% endif %}
|
||||
{% if (awx_container_search_domains is defined) and (',' in awx_container_search_domains) -%}
|
||||
{% set awx_container_search_domains_list = awx_container_search_domains.split(',') %}
|
||||
dns_search:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user