Skip to content

replace user and role creation with corresponding modules #323

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

Conversation

christoph2497
Copy link
Member

@christoph2497 christoph2497 commented May 27, 2024

I replaced the old functionality of creating users and roles of logstash with the corresponding modules. Also i added a few new variables to default/main.yml which are used to make the user and role creation more variable. The documenation was also adjusted accordingly. Cause the modules don't support the use of password hashes atm all variables corresponding to password hashes in logstash have been removed.

@tbauriedel
Copy link
Member

tbauriedel commented May 27, 2024

Since we want to use these modules and the need the python3 module "elasticsearch", we should consider to install the module as part of the role.

The templates for the role and user can be deleted I guess. They are not used anymore.

Copy link
Member

@tbauriedel tbauriedel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tbauriedel tbauriedel removed the request for review from widhalmt May 31, 2024 10:18
tbauriedel
tbauriedel previously approved these changes May 31, 2024
@tbauriedel tbauriedel requested a review from widhalmt May 31, 2024 10:24
@tbauriedel
Copy link
Member

Another review is needed because I have added some changes...
Ping @widhalmt

Copy link
Member

@widhalmt widhalmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found a view things that might need to be changed.

Please make sure installing the packagaes really works on all operating systems. And maybe move the installation to the elasticstack role so we don't have to run the same code every time we need to handle users.

tbauriedel and others added 3 commits June 5, 2024 15:03
Co-authored-by: Thomas Widhalm <widhalmt@widhalm.or.at>
Co-authored-by: Thomas Widhalm <widhalmt@widhalm.or.at>
@tbauriedel
Copy link
Member

Pipelines failing to bug #326

@tbauriedel
Copy link
Member

(Ansible verbosity 3 needs to be removed before merging)

@tbauriedel tbauriedel requested a review from widhalmt June 7, 2024 08:41
@tbauriedel tbauriedel enabled auto-merge June 7, 2024 10:51
Copy link
Member

@widhalmt widhalmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. No objections from my side.

@tbauriedel tbauriedel added this pull request to the merge queue Jun 7, 2024
Merged via the queue into NETWAYS:main with commit dfd5db8 Jun 7, 2024
4 checks passed
ivareri pushed a commit to ivareri/ansible-collection-elasticstack that referenced this pull request Jun 17, 2025
I replaced the old functionality of creating users and roles of logstash
with the corresponding modules. Also i added a few new variables to
default/main.yml which are used to make the user and role creation more
variable. The documenation was also adjusted accordingly. Cause the
modules don't support the use of password hashes atm all variables
corresponding to password hashes in logstash have been removed.

---------

Co-authored-by: Tobias Bauriedel <tobias.bauriedel@netways.de>
Co-authored-by: Thomas Widhalm <thomas.widhalm@netways.de>
Co-authored-by: Tobias Bauriedel <tobias@bauriedel.de>
Co-authored-by: Thomas Widhalm <widhalmt@widhalm.or.at>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants