Graylog2 / graylog-ansible-role

Ansible role which installs and configures Graylog
Apache License 2.0
212 stars 127 forks source link

This role doesn't work for production deploys #89

Closed evrardjp closed 2 years ago

evrardjp commented 6 years ago

I've noticed this isn't production ready deployment of graylog:

evrardjp commented 6 years ago

FYI I'm building a PoC integration of graylog for OpenStack clusters deployed with OpenStack-Ansible. Bridging communities would be great.

evrardjp commented 6 years ago

Is there someone here that can help at pointing me to the why of the authentication failure?

mariussturm commented 6 years ago

Sounds like your Graylog servers doesn't share one MongoDB instance. In that case they all run there own local database with own authentication data. Try to change the Mongo URL so that all servers point to one instance.

evrardjp commented 6 years ago

Thanks. So that's mongo DB the factor here. I will have a look at the role to know why the mongo DB isn't clustered by default when running the role on multiple nodes.

mariussturm commented 6 years ago

That's currently not implemented by this role (and actually not so easy to do).

evrardjp commented 6 years ago

I know the feeling :)

malcyon commented 2 years ago

I added a cluster example to the README. Hopefully, this suits people's needs. It is not perfect, but it does set up a MongoDB replica set, and gives a good idea of how to go about the whole thing.

evrardjp commented 2 years ago

I would give hugs on that last thing, but I know it's not covid safe. In the meantime, thanks @malcyon !

malcyon commented 2 years ago

My pleasure!