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

Elasticsearch autodiscovery decisions in role #165

Closed
asachs01 opened this issue Feb 12, 2021 · 4 comments
Closed

Elasticsearch autodiscovery decisions in role #165

asachs01 opened this issue Feb 12, 2021 · 4 comments

Comments

@asachs01
Copy link

@juju2112 there's probably a better title for this, but it arises out of some issues in z-#4632. The crux of it is that the role is being used with commercially packaged Elasticsearch and does some things that lead to confusion when using the role with that version of ES--those are:

  1. The ansible role for graylog activates enables autodiscovery by default
  2. The ansible role does not allow to set elasticsearch_discovery_default_scheme

Would it be worth changing 1. so that the default behavior is to not enable autodiscovery and can we make it possible so that folks using the role can enable elasticsearch_discovery_default_scheme?

@asachs01
Copy link
Author

Also, FWIW, allowing users to also configure:

elasticsearch_discovery_default_user
elasticsearch_discovery_default_password

Would also be helpful.

@malcyon
Copy link
Contributor

malcyon commented Feb 12, 2021

We can change the default value. Would that be here and here?

graylog_elasticsearch_discovery_enabled: True

elasticsearch_discovery_enabled = {{ graylog_elasticsearch_discovery_enabled }}

For the other configs, are these Graylog settings or Elasticsearch settings? We are just including the official Elasticsearch role in our code. So any settings available through that role should work:

- role: "elastic.elasticsearch"
version: master
when: graylog_install_elasticsearch

For additional graylog configs, we provide this setting. It allows users to pass any additonal Graylog configs needed.

    graylog_additional_config:
      test: value

@asachs01
Copy link
Author

Ah. Yeah, so those are Graylog config options if the additional config param can hold those, maybe we just need a readme update?

@malcyon
Copy link
Contributor

malcyon commented Feb 15, 2021

@asachs01 I set elasticsearch_discovery_enabled to default to False and added documenation to the readme on the graylog_additional_config construct.

jrunu pushed a commit to jrunu/graylog-ansible-role that referenced this issue Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants