mirror of
https://github.com/ansible/awx.git
synced 2026-04-06 18:49:21 -02:30
Merge pull request #1552 from jffz/devel
Add ca_trust_dir to local docker installations
This commit is contained in:
@@ -95,3 +95,9 @@ pg_port=5432
|
|||||||
# AWX project data folder. If you need access to the location where AWX stores the projects
|
# 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.
|
# 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
|
#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
|
||||||
|
|||||||
@@ -79,7 +79,11 @@
|
|||||||
state: started
|
state: started
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
image: "{{ awx_web_docker_actual_image }}"
|
image: "{{ awx_web_docker_actual_image }}"
|
||||||
volumes: "{{ project_data_dir + ':/var/lib/awx/projects:rw' if project_data_dir is defined else omit }}"
|
volumes: >
|
||||||
|
{{
|
||||||
|
[project_data_dir + ':/var/lib/awx/projects:rw'] if project_data_dir is defined else []
|
||||||
|
+ [ca_trust_dir + ':/etc/pki/ca-trust:ro'] if ca_trust_dir is defined else []
|
||||||
|
}}
|
||||||
user: root
|
user: root
|
||||||
ports:
|
ports:
|
||||||
- "{{ host_port }}:8052"
|
- "{{ host_port }}:8052"
|
||||||
@@ -113,7 +117,11 @@
|
|||||||
state: started
|
state: started
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
image: "{{ awx_task_docker_actual_image }}"
|
image: "{{ awx_task_docker_actual_image }}"
|
||||||
volumes: "{{ project_data_dir + ':/var/lib/awx/projects:rw' if project_data_dir is defined else omit }}"
|
volumes: >
|
||||||
|
{{
|
||||||
|
[project_data_dir + ':/var/lib/awx/projects:rw'] if project_data_dir is defined else []
|
||||||
|
+ [ca_trust_dir + ':/etc/pki/ca-trust:ro'] if ca_trust_dir is defined else []
|
||||||
|
}}
|
||||||
links: "{{ awx_task_container_links|list }}"
|
links: "{{ awx_task_container_links|list }}"
|
||||||
user: root
|
user: root
|
||||||
hostname: awx
|
hostname: awx
|
||||||
|
|||||||
@@ -15,10 +15,15 @@ services:
|
|||||||
hostname: awxweb
|
hostname: awxweb
|
||||||
user: root
|
user: root
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
{% if project_data_dir is defined %}
|
{% if (project_data_dir is defined) or (ca_trust_dir is defined) %}
|
||||||
volumes:
|
volumes:
|
||||||
|
{% endif %}
|
||||||
|
{% if project_data_dir is defined %}
|
||||||
- "{{ project_data_dir +':/var/lib/awx/projects:rw' }}"
|
- "{{ 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) -%}
|
{% if (awx_container_search_domains is defined) and (',' in awx_container_search_domains) -%}
|
||||||
{% set awx_container_search_domains_list = awx_container_search_domains.split(',') %}
|
{% set awx_container_search_domains_list = awx_container_search_domains.split(',') %}
|
||||||
dns_search:
|
dns_search:
|
||||||
@@ -69,10 +74,15 @@ services:
|
|||||||
hostname: awx
|
hostname: awx
|
||||||
user: root
|
user: root
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
{% if project_data_dir is defined %}
|
{% if (project_data_dir is defined) or (ca_trust_dir is defined) %}
|
||||||
volumes:
|
volumes:
|
||||||
|
{% endif %}
|
||||||
|
{% if project_data_dir is defined %}
|
||||||
- "{{ project_data_dir +':/var/lib/awx/projects:rw' }}"
|
- "{{ 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) -%}
|
{% if (awx_container_search_domains is defined) and (',' in awx_container_search_domains) -%}
|
||||||
{% set awx_container_search_domains_list = awx_container_search_domains.split(',') %}
|
{% set awx_container_search_domains_list = awx_container_search_domains.split(',') %}
|
||||||
dns_search:
|
dns_search:
|
||||||
|
|||||||
Reference in New Issue
Block a user