opensearch-project / ansible-playbook

🤖 A community repository for Ansible Playbook of OpenSearch Project.
https://opensearch.org/
Apache License 2.0
81 stars 97 forks source link

[BUG][Documentation] Missing logstash_password on ansible-playbook set up #134

Closed thyarles closed 8 months ago

thyarles commented 1 year ago

Describe the bug The logstash environment is missing on documentation

To Reproduce Steps to reproduce the behavior:

  1. Follow the documentation as is
  2. See error

Expected behavior The cluster should be successfully deployed.

Current behavior The error bellow is being displayed to the user

fatal: [mpt-kpl01]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error was: {'_meta': {'type': 'internalusers', 'config_version': 2}, 'admin': {'hash': '{{ admin_password }}', 'reserved': True, 'backend_roles': ['admin'], 'description': 'admin user'}, 'kibanaserver': {'hash': '{{ kibanaserver_password }}', 'reserved': True, 'description': 'kibanaserver user'}, 'logstash': {'hash': '{{ logstash_password }}', 'reserved': True, 'description': 'logstash user'}}: 'logstash_password' is undefined\n\nThe error appears to be in '/root/ansible-playbook/roles/linux/opensearch/tasks/security.yml': line 268, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n    # passwords will be written next\n    - name: Security Plugin configuration | Filter service keys from the list of users\n      ^ here\n"
}

Host/Environment (please complete the following information):

bbarani commented 8 months ago

@thyarles Can we close this issue since the documentation changes have been merged already?

thyarles commented 8 months ago

@thyarles Can we close this issue since the documentation changes have been merged already?

Hi @bbarani, sure! My bad, I forgot this bug opened. Thanks!