Project

Profile

Help

Story #8536

closed

Option to not configure ipv6 listening in nginx config

Added by benjdudas over 1 year ago. Updated over 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
Installer - Moved to GitHub issues
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 - DUPLICATEActions
Has duplicate Pulp - Issue #8069: pulp_installer: Add if block for enabling/disabling IPv6 based on the presence of IPv6 interfaces on the hostCLOSED - DUPLICATEActions
Actions #1

Updated by pulpbot over 1 year ago

  • Status changed from NEW to POST

Added by Fabricio Aguiar over 1 year ago

Revision b7ab750d

Only listen IPv6 when it is configured on the managed host

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

Added by Fabricio Aguiar over 1 year ago

Revision b7ab750d

Only listen IPv6 when it is configured on the managed host

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

Actions #2

Updated by Anonymous over 1 year ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #3

Updated by fao89 over 1 year ago

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

Updated by fao89 over 1 year 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

Added by Fabricio Aguiar over 1 year ago

Revision e944bf29

Only listen IPv6 when it is configured on the managed host

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

(cherry picked from commit b7ab750d073a33e6f8547022f7ff359f9f74597a)

Added by Fabricio Aguiar over 1 year ago

Revision e944bf29

Only listen IPv6 when it is configured on the managed host

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

(cherry picked from commit b7ab750d073a33e6f8547022f7ff359f9f74597a)

Actions #6

Updated by ttereshc over 1 year ago

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

Added by Fabricio Aguiar 12 months ago

Revision ae68d1e9

Only listen IPv6 when it is configured on the managed host

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

(cherry picked from commit b7ab750d073a33e6f8547022f7ff359f9f74597a) (cherry picked from commit e944bf2903f4f6911bb73694d2cac099f79a5b29)

Added by Fabricio Aguiar 12 months ago

Revision ae68d1e9

Only listen IPv6 when it is configured on the managed host

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

(cherry picked from commit b7ab750d073a33e6f8547022f7ff359f9f74597a) (cherry picked from commit e944bf2903f4f6911bb73694d2cac099f79a5b29)

Also available in: Atom PDF