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

Mongos as systemd service #698

Merged

Conversation

h-haaks
Copy link
Contributor

@h-haaks h-haaks commented Mar 13, 2024

Pull Request (PR) description

Cleanup mongos setup by switching from old init.d script to systemd unit.
Bumping default repo version to 4.4 for redhat++ and default version for debian-10 to 4.4.29 was necessary to simplify the code.
As 4.4 is the oldest minor version supported by mongodb this should be OK.

This is my first PR related to #696


if $service_manage {
if $facts['os']['family'] == 'RedHat' or $facts['os']['family'] == 'Suse' {
file { '/etc/sysconfig/mongos' :
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is not mentioned in the service unit.
The content is set as Environment in the unit.

@h-haaks
Copy link
Contributor Author

h-haaks commented Mar 14, 2024

This change might break the mongos service in environments that are not on the latest 4.4 patch.
Although Ubuntu 20.04 distro version ( 3.8.6 ) does not break.

@h-haaks
Copy link
Contributor Author

h-haaks commented Mar 14, 2024

Would be nice if someone with SLES environment could test this. ( not covered by beaker/github actions )

@@ -0,0 +1,3 @@
---
mongodb::mongos::service_user: 'mongodb'
mongodb::mongos::service_group: 'mongodb'
Copy link
Member

Choose a reason for hiding this comment

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

Please add the missing newline at the end.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the unused init.d template as well

@h-haaks h-haaks requested a review from witjoh March 15, 2024 10:54
@h-haaks h-haaks merged commit 5ece1ea into voxpupuli:master Mar 16, 2024
10 checks passed
@h-haaks h-haaks deleted the mongos-as-systemd-service branch March 16, 2024 13:44
@treydock treydock added the enhancement New feature or request label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants