Coder Social home page Coder Social logo

Comments (8)

gingerwizard avatar gingerwizard commented on June 22, 2024

The plan is to hold off shield support until we have an API in ES - due in later versions. I'd also rather we address this with templates. We also need to improve plugin management - see #59

from ansible-elasticsearch.

barryib avatar barryib commented on June 22, 2024

I understand your point and I'm definitely agree to use an API. But is this API planned for the next ES release? Any date? Is this future API will also work for plugins management?

Btw, we actually need the shield support. So I'll create a separate (temporary) role for our business cases.

from ansible-elasticsearch.

barryib avatar barryib commented on June 22, 2024

I submitted a PR for an ansible module to manage esusers while waiting for the api.

from ansible-elasticsearch.

babadofar avatar babadofar commented on June 22, 2024

I have worked with this ansible role which has support for shield https://github.com/makingwaves/ansible-elasticsearch
It has some logic to create users. For the roles and role mappings, it simply copies in files. There are too many settings in there to manage with the standard ansible variables. I really like the mapping functionality used for setting variables in elasticsearch.yml in the official elasticsearch role, should have used that.
Perhaps this can give you some inspiration:)

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on June 22, 2024

@barryib @babadofar the shield API is now being targeted for version 2.3 - which will be very soon.
For this reason im considering adding shield support to the ansible role. We need to decide what this is likely to support and split it into multiple requests. Initially, i would propose (based on what the API supports) to add

  1. management of the es_realm users i.e. adding, removing a user inc. the ability to manage the groups to which they belong
  2. Management of the indices and clysters permissions for each role

We can later add support for SSL and other realms.

from ansible-elasticsearch.

barryib avatar barryib commented on June 22, 2024

Hello @gingerwizard, I agree with that.

But so far, the first admin user should be created with esusers binary.

from ansible-elasticsearch.

barryib avatar barryib commented on June 22, 2024

Hi, another update on this thread... Now the elasticsearch_esusers module became eslasticsearch_shield_user. The module supports the esusers and esnative (with the shield api) realm.

Here is the PR #2528 on the ansible-modules-extras repository.

Plus another module to manage the shield role PR #2529

PS: I'm actually using these in production.

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on June 22, 2024

@barryib moving this to #124
as i think its a larger discussion on how to support xpack.

from ansible-elasticsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.