You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Variable os_plugin_bin_path is used for different purposes in the dashboards role and the opensearch role.
For the dashboards plays, it's intended to point to the opensearch-dashboards-plugin executable, whilst for the opensearch plays, it should point to the opensearch-plugin executable.
This means that you're basically forced to install everything under /usr/share/ (unless you want to clone the repo twice, and maintain separate trees for opensearch and for opensearch-dashboards),
or to edit the ./roles/linux/dashboards/defaults/main.yml and ./roles/linux/opensearch/defaults/main.yml separately for your custom settings.
I would expect ./inventories/opensearch/group_vars/all/all.yml to be the place for custom overrides of the defaults ?
To Reproduce
Steps to reproduce the behavior:
Clone the ansible-playbook repository
Tweak inventories/opensearch/group_vars/all/all.yml to your liking, adding something like this to the bottom:
Add some hosts to the inventory, with at least 1 dashboards host and at least 1 os-cluster host
Run the playbook according to README.md
See the task TASK [linux/opensearch : Security Plugin configuration | Initialize the opensearch security index in opensearch with default configs] ***** fail with:
bash: /usr/share/opensearch/plugins/opensearch-security/tools/securityadmin.sh: No such file or directory
Add to inventories/opensearch/group_vars/all/all.yml:
See the task TASK [linux/dashboards : Get all the installed dashboards plugins] fail
with sudo: /opt/opensearch/bin/opensearch-plugin: command not found.
Expected behavior
I expected it to be possible to install opensearch-dashboards with this playbook, even with opensearch data/master data installed on it's own file system mounted somewhere else than underneath /usr/share/.
I think it would perhaps be better to extrapolate the binaries' paths from os_home and os_dashboards_home instead of having a dedicated variable with the pathname of the plugin executable?
Possibly even deducing "everything" from os_home, such as configs, tools, etc.
And /usr/share/ is a very strange location for storing changing, node-specific, data, by the way...
Describe the bug
Variable os_plugin_bin_path is used for different purposes in the dashboards role and the opensearch role.
For the dashboards plays, it's intended to point to the opensearch-dashboards-plugin executable, whilst for the opensearch plays, it should point to the opensearch-plugin executable.
This means that you're basically forced to install everything under
/usr/share/
(unless you want to clone the repo twice, and maintain separate trees for opensearch and for opensearch-dashboards),or to edit the
./roles/linux/dashboards/defaults/main.yml
and./roles/linux/opensearch/defaults/main.yml
separately for your custom settings.I would expect
./inventories/opensearch/group_vars/all/all.yml
to be the place for custom overrides of the defaults ?To Reproduce
Steps to reproduce the behavior:
TASK [linux/opensearch : Security Plugin configuration | Initialize the opensearch security index in opensearch with default configs] *****
fail with:TASK [linux/dashboards : Get all the installed dashboards plugins]
failwith sudo: /opt/opensearch/bin/opensearch-plugin: command not found.
Expected behavior
I expected it to be possible to install opensearch-dashboards with this playbook, even with opensearch data/master data installed on it's own file system mounted somewhere else than underneath /usr/share/.
Playbook Name
opensearch.yml
Role name
linux/dashboards
Screenshots
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: