Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Added repo_gpgcheck and single quotes to influxdb #189

Merged
merged 2 commits into from
Oct 19, 2021

Conversation

ghost
Copy link

@ghost ghost commented Oct 7, 2021

Added to yumrepo influxdb:

  • repo_gpgcheck
  • single quotes
  • spacing adjustment

@ghost ghost self-requested a review as a code owner October 7, 2021 16:15
@CLAassistant
Copy link

CLAassistant commented Oct 7, 2021

CLA assistant check
All committers have signed the CLA.

@puppet-community-rangefinder
Copy link

puppet_metrics_dashboard::repos is a class

that may have no external impact to Forge modules.

This module is declared in 0 of 578 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.

@hammondr
Copy link

hammondr commented Oct 7, 2021

Since the repodata in the influxdb yum repo isn't signed, repo_gpgcheck yumrepo parameter is needed for "hardened" systems where /etc/yum.conf specifies the default repo_gpgcheck=1.

@MartyEwings MartyEwings added the enhancement New feature or request label Oct 7, 2021
Copy link
Contributor

@jarretlavallee jarretlavallee left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @di2ejenkins!

As the repo_gpgcheck = 0 does not work for all users, we will need to add a parameter to determine its value. Please add a parameter to configure this setting.

@hammondr
Copy link

hammondr commented Oct 7, 2021

I think the existing code base only works when repo_gpgcheck = 0 at the global yum level (either explicitly or because that is the default). This change allows the influx repo to work when repo_gpgcheck = 1 at the global yum level.

As the repo_gpgcheck = 0 does not work for all users, we will need to add a parameter to determine its value. Please add a parameter to configure this setting.

I have no problem with the new parameter but the logic isn't quite right IMO. Do you also want to parameterize existingrepo_gpgcheck and gpgcheck params elsewhere in the file?

@jarretlavallee
Copy link
Contributor

That's a good point

@hammondr
Copy link

@jarretlavallee, is there anything else you wanted Tara or me to do here?

Copy link
Contributor

@jarretlavallee jarretlavallee left a comment

Choose a reason for hiding this comment

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

LGTM

@jarretlavallee jarretlavallee merged commit f8546a8 into puppetlabs:main Oct 19, 2021
@jarretlavallee
Copy link
Contributor

Thanks for the PR @hammondr. This has been merged and will be included in the next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants