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

Cleanup Systemd drop-in file handling #1396

Merged

Conversation

SimonHoenscheid
Copy link
Collaborator

@SimonHoenscheid SimonHoenscheid commented Feb 2, 2023

  • add puppet/systemd module
  • remove systemd daemon reload and raise minimal puppet version to 6.1
  • remove old "drop-in file" removal, was in place 3 years now
  • move systemd drop-in file handling to seperate define
  • Implement recent feedback
  • define is now private
  • rename parameter in define call
  • fix unit tests
  • fix rubocop complains
  • fix path, set default fact
  • fix systemd drop in file, adding template parameters to systemd define
  • added reason for drop in file in a comment
  • added reviewers feedback
  • remove ensure parameter for systemd drop-in file handling, except
    for the define itself.
  • systemd_extra_args expects String, default is undef now

@puppet-community-rangefinder
Copy link

postgresql::server::instance::config is a type

that may have no external impact to Forge modules.

postgresql::server::instance::systemd is a type

that may have no external impact to Forge modules.

This module is declared in 70 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.

metadata.json Outdated Show resolved Hide resolved
Copy link
Contributor

@chelnak chelnak left a comment

Choose a reason for hiding this comment

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

Small suggestion regarding puppet versions

manifests/server/instance/systemd.pp Outdated Show resolved Hide resolved
manifests/server/instance/systemd.pp Show resolved Hide resolved
manifests/server.pp Outdated Show resolved Hide resolved
@SimonHoenscheid SimonHoenscheid force-pushed the shoenscheid_systemd_cleanup branch 4 times, most recently from 6d6364d to 548f5b2 Compare February 13, 2023 10:12
@SimonHoenscheid SimonHoenscheid marked this pull request as ready for review February 13, 2023 12:26
@SimonHoenscheid SimonHoenscheid requested a review from a team as a code owner February 13, 2023 12:26
@SimonHoenscheid
Copy link
Collaborator Author

@bastelfreak @chelnak @ekohl this is ready for a final review, all previous comments have been addressed

@SimonHoenscheid SimonHoenscheid requested review from chelnak, bastelfreak and ekohl and removed request for chelnak, bastelfreak and ekohl February 13, 2023 12:28
manifests/server/instance/systemd.pp Outdated Show resolved Hide resolved
manifests/server/instance/systemd.pp Outdated Show resolved Hide resolved
manifests/server/instance/config.pp Outdated Show resolved Hide resolved
@SimonHoenscheid SimonHoenscheid force-pushed the shoenscheid_systemd_cleanup branch 2 times, most recently from e3a83ea to 3261f59 Compare February 13, 2023 14:28
  * add puppet/systemd module
  * remove systemd daemon reload and raise minimal puppet version to 6.1
  * remove old "drop-in file" removal, was in place 3 years now
  * move systemd drop-in file handling to seperate define
  * Implement recent feedback
  * define is now private
  * rename parameter in define call
  * fix unit tests
  * fix rubocop complains
  * fix path, set default fact
  * fix systemd drop in file, adding template parameters to systemd define
  * added reason for drop in file in a comment
  * added reviewers feedback
  * remove ensure parameter for systemd drop-in file handling, except
    for the define itself.
  * systemd_extra_args expects String, default is undef now
@chelnak chelnak merged commit d4af1d8 into puppetlabs:main Feb 14, 2023
@SimonHoenscheid SimonHoenscheid deleted the shoenscheid_systemd_cleanup branch February 14, 2023 10:09
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.

None yet

6 participants