puppetlabs-apache icon indicating copy to clipboard operation
puppetlabs-apache copied to clipboard

support lbmethod modules

Open xorpaul opened this issue 3 years ago • 10 comments

mod_proxy_balancer depends on one of these load balancing scheduler algorithms:

See https://httpd.apache.org/docs/2.4/mod/mod_proxy_balancer.html

This adds support to include one of them via:

class { 'apache::mod::lbmethod_byrequests': }

Maybe apache::mod::lbmethod_byrequests should even fail if none of these 4 are included?

xorpaul avatar Jul 28 '22 12:07 xorpaul

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 28 '22 12:07 CLAassistant

apache::mod::lbmethod_bybusyness is a class

that may have no external impact to Forge modules.

apache::mod::lbmethod_byrequests is a class

that may have no external impact to Forge modules.

apache::mod::lbmethod_bytraffic is a class

that may have no external impact to Forge modules.

apache::mod::lbmethod_heartbeat is a class

that may have no external impact to Forge modules.

This module is declared in 174 of 579 indexed public Puppetfiles.


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.

@ekohl Ok, thanks. I'll check it out.

xorpaul avatar Jul 28 '22 13:07 xorpaul

Is there any way to trigger only my new tests and not the whole test suite which takes over 6 minutes on my workstation?

xorpaul avatar Aug 03 '22 16:08 xorpaul

@xorpaul You can target specific test files as shown below:

bundle exec rspec spec/unit/puppet/provider/iptables_spec.rb

david22swan avatar Aug 03 '22 16:08 david22swan

@xorpaul Hey, just checking in on how this is progressing

david22swan avatar Sep 05 '22 10:09 david22swan

After upgrading my workstation to Ubuntu 22.04 the bundle commands do not work anymore.

I'm getting

$ bundle install
Could not find gem 'puppet-module-posix-default-r3.0 (~> 1.0)' in any of the gem sources listed in your Gemfile.
$ bundle exec rake parallel_spec
/usr/bin/env: ‘ruby2.5’: No such file or directory

Is there a way to make this work with more recent OS versions?

xorpaul avatar Sep 07 '22 15:09 xorpaul

@xorpaul You could try deleting the gem folder and gemfile.lock file

david22swan avatar Sep 12 '22 09:09 david22swan

@xorpaul I recognize the pain you have. Sadly PDK is in a horrible place regarding modern Ruby support. https://tickets.puppetlabs.com/browse/MODULES-11161 has been open for a long time. I always end up hacking Gemfile and hardcode minor_version = '2.7' here: https://github.com/puppetlabs/puppetlabs-apache/blob/648332c61deb3d240a0d14af034d8e59f9f6197e/Gemfile#L17

Or I just rely on CI to do testing.

ekohl avatar Sep 12 '22 09:09 ekohl

@xorpaul The issue you were having should now be resolved.

david22swan avatar Oct 10 '22 13:10 david22swan