The version of MongoDB should be configurable, not hardcoded. At the same time, I am wary of surprise-updating someone's MongoDB instance. I think it should be opt-in, so people can upgrade when they want and ensure they are ready for it. The user should tell us what version of MongoDB they want.
This will make it so that if someones specifies graylog_install_mongodb: True, then they will also need to specify graylog_mongodb_version and the key for the package repo. If they specify graylog_install_mongodb: False, then nothing will change, as the code will be ignored.
The version of MongoDB should be configurable, not hardcoded. At the same time, I am wary of surprise-updating someone's MongoDB instance. I think it should be opt-in, so people can upgrade when they want and ensure they are ready for it. The user should tell us what version of MongoDB they want.
This will make it so that if someones specifies
graylog_install_mongodb: True
, then they will also need to specifygraylog_mongodb_version
and the key for the package repo. If they specifygraylog_install_mongodb: False
, then nothing will change, as the code will be ignored.