StackStorm / ansible-st2

Ansible Roles and Playbooks to deploy StackStorm
https://galaxy.ansible.com/StackStorm/stackstorm/
Apache License 2.0
100 stars 75 forks source link

Mongo 4.0 support for ansible - addressing issue #264 #266

Closed amanda11 closed 4 years ago

amanda11 commented 4 years ago

Initial changes for 4.0. Having issues with local server, so getting a travis run performed to see if any obvious problems. Will change out of draft once done more verification locally.

Closes #264

amanda11 commented 4 years ago

Local testing passed - performed testing with default versions and also overriding version using the mongodb_version parameter. Ready for review.

amanda11 commented 4 years ago

Based on discussion in #development team decided to use MongoDB 4.0 across all the platforms. Turns out previously Mongo 4 wasn't supported for EL7 and U16.

Now Mongo 4.0 is available for both platforms: https://docs.mongodb.com/v4.0/tutorial/install-mongodb-on-ubuntu/#platform-support https://docs.mongodb.com/v4.0/tutorial/install-mongodb-on-red-hat/#platform-support

This will guarantee consistency in Mongo version everywhere. Less code hacks in installers and will simplify things by a lot!

I'll update to use version 4.0 - will mark it as draft again...

amanda11 commented 4 years ago

NB. This can be simplified if we remove the redhat 6 support under the same PR. We could then go to having a single default which is the 4.0. OR we could leave it as per this PR which allows you to easily have different defaults per O/S - if we think we will go to different versions in near future on different O/S. Actually can simplify now - as mongodb4.0 is listed as supported on RH 6. Next commit will have 4.0 as default for all.

Another consideration is whether we want to leave all the apt-keys for the different mongo versions, if we want to allow users to choose another version of mongodb if they need to. I have left in, as makes easier for Ubuntu installs - and we previously had them in for older versions like 3.2.