Actions
Issue #8069
closedpulp_installer: Add if block for enabling/disabling IPv6 based on the presence of IPv6 interfaces on the host
Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
This issue came up during a install of Ansible Automation Hub which was failing on nginx startup if ipv6 was not enabled on the host.
The following was used as a workaround for this.
diff --no-dereference -Naru ansible-automation-platform-setup-bundle-1.2.0-1/collections/ansible_collections/pulp/pulp_installer/roles/pulp_webserver/templates/nginx.conf.j2 ansible-automation-platform-setup-bundle-1.2.0-1.patched/collections/ansible_collections/pulp/pulp_installer/roles/pulp_webserver/templates/nginx.conf.j2
--- ansible-automation-platform-setup-bundle-1.2.0-1/collections/ansible_collections/pulp/pulp_installer/roles/pulp_webserver/templates/nginx.conf.j2 2020-11-18 14:25:57.000000000 +0000
+++ ansible-automation-platform-setup-bundle-1.2.0-1.patched/collections/ansible_collections/pulp/pulp_installer/roles/pulp_webserver/templates/nginx.conf.j2 2021-01-11 16:41:49.853575004 +0000
@@ -33,10 +33,8 @@
# Gunicorn docs suggest the use of the "deferred" directive on Linux.
{% if pulp_webserver_disable_https | bool %}
listen {{ pulp_webserver_http_port }} default_server deferred;
- listen [::]:{{ pulp_webserver_http_port }} default_server deferred;
{% else %}
listen {{ pulp_webserver_https_port }} default_server deferred ssl;
- listen [::]:{{ pulp_webserver_https_port }} default_server deferred ssl;
ssl_certificate {{ pulp_certs_dir }}/pulp_webserver.crt;
ssl_certificate_key {{ pulp_certs_dir }}/pulp_webserver.key;
@@ -121,7 +119,6 @@
{% if not pulp_webserver_disable_https | bool %}
server {
listen {{ pulp_webserver_http_port }} default_server;
- listen [::]:{{ pulp_webserver_http_port }} default_server;
server_name _;
return 301 https://$host$request_uri;
}
Related issues
Updated by dkliban@redhat.com almost 4 years ago
- Triaged changed from No to Yes
Could you please open a pull request?
Updated by fao89 over 3 years ago
- Is duplicate of Story #8536: Option to not configure ipv6 listening in nginx config added
Actions