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

support multiple users #1429

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

support multiple users #1429

wants to merge 1 commit into from

Conversation

TZhuGit
Copy link

@TZhuGit TZhuGit commented Oct 11, 2024

roles/wazuh/ansible-wazuh-manager/templates/admin.json.j2
Template does not support multiple users despite the variable wazuh_api_users being able to support multiple entries.
Change: List + valid json by adding ',' between each object in list

roles/wazuh/ansible-wazuh-manager/tasks/main.yml
Definition of the task "Execute create_user script" is misleading as create_user.py does not read the command line parameters.
Change: Removed unused command line parameters + loop of items. Conditional when: is still present

roles/wazuh/ansible-wazuh-manager/files/create_user.py
Only supports one username and password when reading from admin.json file
Change: Loops through the users within defined in admin.json

@TZhuGit
Copy link
Author

TZhuGit commented Oct 11, 2024

Linking issues.
#998 #1132

Dev and testing:
[email protected]
[email protected]

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.

1 participant