Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding mod_version module to be activated by default #2380

Merged
merged 2 commits into from
Feb 3, 2023

Conversation

Q-Storm
Copy link
Contributor

@Q-Storm Q-Storm commented Feb 2, 2023

re adding mod_version which was accidentally removed with the drop of "apache 2.2 Support" in #2329.

@Q-Storm Q-Storm requested a review from a team as a code owner February 2, 2023 13:09
@CLAassistant
Copy link

CLAassistant commented Feb 2, 2023

CLA assistant check
All committers have signed the CLA.

@puppet-community-rangefinder
Copy link

apache::mod::version is a class

that may have no external impact to Forge modules.

This module is declared in 176 of 580 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.

@jnk0
Copy link

jnk0 commented Feb 2, 2023

As a user of puppetlabs-apache I strongly support this PR as it re-adds the accidentally removed module version, which is an essential module and needs to be part of default_mods too. Just think about .htaccess files distributed with various software or software addons.

But may I suggest adding the version module to default_mods.pp again too, @Q-Storm?

@Q-Storm
Copy link
Contributor Author

Q-Storm commented Feb 3, 2023

Thanks @jnk0 I added the the module to the default_mods.pp

Copy link
Member

@david22swan david22swan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Mend error is unrelated

@david22swan david22swan merged commit 037a6c5 into puppetlabs:main Feb 3, 2023
Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would have been nice to at least add a unit test.

# @see https://httpd.apache.org/docs/current/mod/mod_version.html for additional documentation.
#
class apache::mod::version {
if $facts['os']['family'] == 'debian' {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debian , if you want to get the casing right. Though I see it's also wrong in many other places.

if $facts['os']['family'] == 'debian' {
warning("${module_name}: module version_module is built-in and can't be loaded")
} else {
::apache::mod { 'version': }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The leading :: is not needed. AFAIK it never was for defines, but certainly since we dropped Puppet < 4 it's no longer needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants