puppetlabs-apache
puppetlabs-apache copied to clipboard
support lbmethod modules
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?
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.
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 You can target specific test files as shown below:
bundle exec rspec spec/unit/puppet/provider/iptables_spec.rb
@xorpaul Hey, just checking in on how this is progressing
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 You could try deleting the gem folder and gemfile.lock file
@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.
@xorpaul The issue you were having should now be resolved.