puppet-nginx icon indicating copy to clipboard operation
puppet-nginx copied to clipboard

Add support for new feature: port ranges

Open 00ssh opened this issue 6 years ago • 9 comments

Pull Request (PR) description

Updated listen_port data type from Integer to Variant[String, Integer] in 'nginx::resource::server' and 'nginx::resource::streamhost' as newer versions of Nginx support port range at listen port. Please check the release notes from 26th of March:

  • http://nginx.org/en/CHANGES
  • https://www.nginx.com/blog/nginx-plus-r18-released#port-ranges
Changes with nginx 1.15.10                                       26 Mar 2019

    *) Change: when using a hostname in the "listen" directive nginx now
       creates listening sockets for all addresses the hostname resolves to
       (previously, only the first address was used).

    *) Feature: port ranges in the "listen" directive.
...

00ssh avatar Apr 18 '19 12:04 00ssh

nginx::resource::server is a type

The enclosing module is declared in 9 of 575 indexed public Puppetfiles.

Breaking changes to this file WILL impact these modules (exact match):

Breaking changes to this file MAY impact these modules (near match):


The enclosing module is declared in 9 of 575 indexed public Puppetfiles.

that may have no external impact to Forge modules.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

Hi, Can someone point to me, please, what is wrong with my travis tests? The error seems to be: An error occurred while loading ./spec/acceptance/class_spec.rb. Failure/Error: install_module_dependencies_on(hosts) Beaker::Host::CommandFailure: Host 'debian9-64-1' exited with 1 running: puppet module install puppetlabs-concat -v 5.3.0 Last 10 lines of output were: Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ... Notice: Downloading from https://forgeapi.puppet.com ... Error: Could not install module 'puppetlabs-concat' (???) No version of 'puppetlabs-concat' can satisfy all dependencies Use puppet module install --ignore-dependencies to install only this module

00ssh avatar May 29 '19 13:05 00ssh

It might have been a forge issue. Now all checks have passed. Can you please take a look at my changes and let me know if it can be merged?

00ssh avatar Jun 03 '19 14:06 00ssh

@ekohl @dhoppe can you please give me feedback on this change? we are eager to have this implemented. Thanks!

00ssh avatar Jun 04 '19 14:06 00ssh

I wonder if we should check the version of Nginx somewhere before configuring port ranges. We already did that for some templates, based on the fact nginx_version.

dhoppe avatar Jun 05 '19 05:06 dhoppe

@ekohl I would like to merge this pull request. Any objections?

dhoppe avatar Jun 06 '19 08:06 dhoppe

Hi guys! Are there any other pending issues with this pull request? We would like to start using it from Forge as soon as possible.

Thanks!

00ssh avatar Jun 20 '19 14:06 00ssh

@ekohl any updates on my pull request, please?

00ssh avatar Jan 06 '20 13:01 00ssh

Dear @00ssh, thanks for the PR!

This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

vox-pupuli-tasks[bot] avatar Sep 30 '20 23:09 vox-pupuli-tasks[bot]