-
Notifications
You must be signed in to change notification settings - Fork 0
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
Clean out Mongo unused settings #21
base: master
Are you sure you want to change the base?
Conversation
MONGO_CONNECTION = None | ||
MONGO_DB = None |
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.
Could we make the two values configurable via the vars with the default being None... Would make it easier in the future to utilize this functionality if the need arises
...
{% if enable_mongo_connection %}
MONGO_CONNECTION = MongoClient({{ mongo_connection_ url }}, .....
{% endif %}
...
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.
Sounds good.
Made this change
51611bf
to
b80a8e0
Compare
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.
Since we've already made the ability to configure whether the mongo connection should be enabled it might be worthwhile to make this configurable too
I dont believe this would be necessary, if you see here, we first confirm that the Mongo DB user and password are present to create the connection. |
Mhhm yea.... makes me wonder should those be gotten from the environment ? Seems weird for an ansible role... I'd expect it to be configurable from the playbook instead of having the user export those environment variables in later steps |
b80a8e0
to
f5249bc
Compare
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.
LGTM
Have mongo settings set to None to avoid attempts to connect to Mongo DB that we do not have for our KPI installation.
Closes #18