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

Handle non-existing config file #469

Merged
merged 2 commits into from
Jun 15, 2018

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jun 15, 2018

When using the RH MongoDB 3.4 SCL the config file is in /etc/opt/rh/rh-mongodb34/mongod.conf which causes this fact to fail because the -syspaths package still installs the binaries to /usr/bin. Since we don't use this fact, it's enough for now to gracefully handle this.

Ideally we could use the value for mongodb::server::config but I'm not aware of a way to do this in facts.

Copy link
Member

@dhollinger dhollinger left a comment

Choose a reason for hiding this comment

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

Rubocop failures need to be investigated

@ekohl ekohl force-pushed the handle-different-config-location branch from ea7ed63 to 6455280 Compare June 15, 2018 14:24
@ekohl
Copy link
Member Author

ekohl commented Jun 15, 2018

Updated to include a refactoring. Rubocop was right that there was way too much nesting.

When using the RH MongoDB 3.4 SCL the config file is in
/etc/opt/rh/rh-mongodb34/mongod.conf which causes this fact to fail
because the -syspaths package still installs the binaries to /usr/bin.
Since we don't use this fact, it's enough for now to gracefully handle
this.

Ideally we could use the value for mongodb::server::config but I'm not
aware of a way to do this in facts.
@ekohl ekohl force-pushed the handle-different-config-location branch from 6455280 to 991af66 Compare June 15, 2018 14:31
@ekohl
Copy link
Member Author

ekohl commented Jun 15, 2018

💚 now

@bastelfreak bastelfreak merged commit 5559178 into voxpupuli:master Jun 15, 2018
@ekohl ekohl added the bug Something isn't working label Jun 15, 2018
@ekohl ekohl deleted the handle-different-config-location branch June 18, 2018 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants