Project

Profile

Help

Story #8536

Option to not configure ipv6 listening in nginx config

Added by benjdudas about 1 month ago. Updated 9 days ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
Installer
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
master
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

For environment with ipv6 disabled, provide a option/check to determine if ipv6 listener should be configured.

In roles/pulp_webserver/templates/nginx.conf.j2, the configuration default to always listen on both ipv4 and ipv6.

{% 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;

One option may be to base this on the ansible_all_ipv6_addresses fact.

{% if pulp_webserver_disable_https | bool %}
        listen {{ pulp_webserver_http_port }} default_server deferred;
        {% if ansible_all_ipv6_addresses != [] %}
        listen [::]:{{ pulp_webserver_http_port }} default_server deferred;
        {% endif %}
{% else %}
        listen {{ pulp_webserver_https_port }} default_server deferred ssl;
        {% if ansible_all_ipv6_addresses != [] %}
        listen [::]:{{ pulp_webserver_https_port }} default_server deferred ssl;
        {% endif %}

Related issues

Has duplicate Pulp - Issue #8583: pulp_webserver should work with IPv6 disabledCLOSED - DUPLICATE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Has duplicate Pulp - Issue #8069: pulp_installer: Add if block for enabling/disabling IPv6 based on the presence of IPv6 interfaces on the hostCLOSED - DUPLICATE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision b7ab750d View on GitHub
Added by Fabricio Aguiar 22 days ago

Only listen IPv6 when it is configured on the managed host

https://pulp.plan.io/issues/8536 closes #8536

Revision e944bf29 View on GitHub
Added by Fabricio Aguiar 13 days ago

Only listen IPv6 when it is configured on the managed host

https://pulp.plan.io/issues/8536 closes #8536

(cherry picked from commit b7ab750d073a33e6f8547022f7ff359f9f74597a)

History

#1 Updated by pulpbot 22 days ago

  • Status changed from NEW to POST

#2 Updated by Anonymous 20 days ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#3 Updated by fao89 19 days ago

  • Has duplicate Issue #8583: pulp_webserver should work with IPv6 disabled added

#4 Updated by fao89 19 days ago

  • Has duplicate Issue #8069: pulp_installer: Add if block for enabling/disabling IPv6 based on the presence of IPv6 interfaces on the host added

#6 Updated by ttereshc 9 days ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
  • Sprint/Milestone set to 3.12.2

Please register to edit this issue

Also available in: Atom PDF