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

feat: Add systctl.d spec, parser, and combiner #3358

Merged
merged 1 commit into from
Mar 17, 2022
Merged

feat: Add systctl.d spec, parser, and combiner #3358

merged 1 commit into from
Mar 17, 2022

Conversation

ryan-blakley
Copy link
Contributor

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

Currently core only collects /etc/sysctl.conf but none of the conf files in the /etc/sysctl.d/ directory. So I added a spec for them. Updated the parsers to use a base class. Added a new combiner for all of the conf files in the /etc/sysctl.d/ directory.

* Currently core only collects /etc/sysctl.conf but none of the conf
  files in the /usr/lib/sysctl.d/ and /etc/sysctl.d/ directories.
  So I added a spec for them and added a spec for the /usr/lib/sysctl.d/
  directory as well.
* Updated the parsers to use a base class to avoid duplicate code.
* Added a new combiner for all of the conf files in the
  /usr/lib/sysctl.d/ and /etc/sysctl.d/ directories along with the
  /etc/sysctl.conf file.

Signed-off-by: Ryan Blakley <[email protected]>
Copy link
Contributor

@xiangce xiangce left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks @ryan-blakley

@xiangce xiangce merged commit 66979b8 into RedHatInsights:master Mar 17, 2022
psachin pushed a commit that referenced this pull request Mar 17, 2022
* Currently core only collects /etc/sysctl.conf but none of the conf
  files in the /usr/lib/sysctl.d/ and /etc/sysctl.d/ directories.
  So I added a spec for them and added a spec for the /usr/lib/sysctl.d/
  directory as well.
* Updated the parsers to use a base class to avoid duplicate code.
* Added a new combiner for all of the conf files in the
  /usr/lib/sysctl.d/ and /etc/sysctl.d/ directories along with the
  /etc/sysctl.conf file.

Signed-off-by: Ryan Blakley <[email protected]>
(cherry picked from commit 66979b8)
@ryan-blakley ryan-blakley deleted the add_sysctl_d_spec_combiner branch March 17, 2022 12:34
xiangce pushed a commit that referenced this pull request Sep 6, 2024
* Currently core only collects /etc/sysctl.conf but none of the conf
  files in the /usr/lib/sysctl.d/ and /etc/sysctl.d/ directories.
  So I added a spec for them and added a spec for the /usr/lib/sysctl.d/
  directory as well.
* Updated the parsers to use a base class to avoid duplicate code.
* Added a new combiner for all of the conf files in the
  /usr/lib/sysctl.d/ and /etc/sysctl.d/ directories along with the
  /etc/sysctl.conf file.

Signed-off-by: Ryan Blakley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants