-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
Mongos as systemd service #698
Conversation
|
||
if $service_manage { | ||
if $facts['os']['family'] == 'RedHat' or $facts['os']['family'] == 'Suse' { | ||
file { '/etc/sysconfig/mongos' : |
There was a problem hiding this comment.
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.
This change might break the mongos service in environments that are not on the latest 4.4 patch. |
Would be nice if someone with SLES environment could test this. ( not covered by beaker/github actions ) |
data/Debian-family.yaml
Outdated
@@ -0,0 +1,3 @@ | |||
--- | |||
mongodb::mongos::service_user: 'mongodb' | |||
mongodb::mongos::service_group: 'mongodb' |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
8c5fbe7
to
8f8872a
Compare
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