Merge pull request #2131 from walkafwalka/docker_install_awx_hostnames

Add inventory vars to set docker install hostnames

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2018-10-11 20:29:32 +00:00 committed by GitHub
commit a9f3eeef05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -32,6 +32,8 @@ dockerhub_base=ansible
# task_mem_request=2
# Common Docker parameters
awx_task_hostname=awx
awx_web_hostname=awxweb
postgres_data_dir=/tmp/pgdocker
host_port=80

View File

@ -89,7 +89,7 @@
ports:
- "{{ host_port }}:8052"
links: "{{ awx_web_container_links|list }}"
hostname: awxweb
hostname: "{{ awx_web_hostname }}"
dns_search_domains: "{{ awx_container_search_domains.split(',') if awx_container_search_domains is defined else omit }}"
dns_servers: "{{ awx_alternate_dns_servers.split(',') if awx_alternate_dns_servers is defined else omit }}"
env:
@ -125,7 +125,7 @@
}}
links: "{{ awx_task_container_links|list }}"
user: root
hostname: awx
hostname: "{{ awx_task_hostname }}"
dns_search_domains: "{{ awx_container_search_domains.split(',') if awx_container_search_domains is defined else omit }}"
dns_servers: "{{ awx_alternate_dns_servers.split(',') if awx_alternate_dns_servers is defined else omit }}"
env:

View File

@ -12,7 +12,7 @@ services:
{% endif %}
ports:
- "{{ host_port }}:8052"
hostname: awxweb
hostname: {{ awx_web_hostname }}
user: root
restart: unless-stopped
{% if (project_data_dir is defined) or (ca_trust_dir is defined) %}
@ -71,7 +71,7 @@ services:
{% if pg_hostname is not defined %}
- postgres
{% endif %}
hostname: awx
hostname: {{ awx_task_hostname }}
user: root
restart: unless-stopped
{% if (project_data_dir is defined) or (ca_trust_dir is defined) %}