-
Notifications
You must be signed in to change notification settings - Fork 37
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
Ansible initiative #60
Conversation
I have split the task into many phases, currently I have completed the single node opensearch setup. I will work on below tasks in upcoming days,
|
Completed the task for |
Thanks @saravanan30erd sorry for the late responses. @DandyDeveloper @TheAlgo Please review and comment when you have time. |
xmx_value: 2 | ||
|
||
## Admin user credentials will be used for User & Roles management and cluster operations | ||
admin_password: Test@123 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saravanan30erd can we encapsulate the credentials rather than adding it directly to yml?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
- name: Dashboards Install | create systemd service | ||
template: | ||
src: dashboards.service | ||
dest: /etc/systemd/system/dashboards.service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saravanan30erd Can we avoid hardcoding the paths?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Adding @hyandell to co-proofread for any changes in the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Saravanan,
As Ansible is GPL licensed and has many plugins under different licenses, did you base your work here on a pre-existing codebase? The concern with code that touches on other projects being that we don't want to confuse the licensing with different licenses that affect the overall licensing.
I did see that you had https://github.com/saravanan30erd/opendistro_standalone_installation - which I assume this is based partly on; I'm just concerned about any other repos either this PR or that earlier repo is based on.
Hi @hyandell I have created this opendistro repo from scratch, its not based on any external repo. Also this PR is using only few logics from opendistro one but major areas are created from scratch. |
@bbarani I have made the changes based on your feedback. |
Thanks @saravanan30erd for the confirmation and the changes here. |
Thank you Saravanan :) |
@peterzhuamazon I think for this one, I don't see any problems, but I don't have the time to test this at this moment in time. So I'll pass on this specific PR for review. |
Thanks @hyandell @DandyDeveloper for your inputs on this. Thanks. |
ansible/README.md
Outdated
@@ -0,0 +1,45 @@ | |||
Deploy OpenSearch with Dashboards using Ansible |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit : OpenSearch with OpenSearch Dashboards
server.host: "{{ hostvars[inventory_hostname]['ip'] }}" | ||
opensearch.hosts: ["{{ os_nodes_dashboards }}"] | ||
opensearch.ssl.verificationMode: none | ||
opensearch.username: "kibanaserver" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use a different name here , maybe dashboardserver
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TheAlgo kibanaserver
is the name used in default configuration file from Opensearch dashboards source file(Tar file). Refer: https://opensearch.org/docs/dashboards/install/tls/
I suggest we should follow the default configuration from installation source to avoid confusions. May be it should be changed first in source files and official documentations then we can change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peterzhuamazon Just curious , why are we using kibanaserver
till now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TheAlgo @peterzhuamazon kibanaserver
is used in security plugin where it should be changed and then configuration. I raised the below PRs to fix this. Once this merged and released, then we can update here.
opensearch-project/security#1443
opensearch-project/opensearch-build#458
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are still in discussion with Security Team on this @saravanan30erd please hold on for some time before we make a decision on this.
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peterzhuamazon Sure, I think we can continue with kibanaserver
here as of now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will keep this for now @TheAlgo.
@saravanan30erd please create an issue to track this.
Thanks.
@@ -0,0 +1,7 @@ | |||
--- | |||
# vars file for elasticsearch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we name all instances of elasticsearch
to opensearch
and kibana
to dashboards here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TheAlgo Done the changes.
@saravanan30erd I took a quick pass. PR looks good to me except some nitpicks regarding naming. Good work !! |
Rename PR: opensearch-project/security#1443 |
@peterzhuamazon I think we will rename |
I agree let us keep this in mind for now. |
We have recently created a ansible-playbook repo here: https://github.com/opensearch-project/ansible-playbook To avoid migration issues like helm-charts, would you mind move this PR to there as well? This would be easier for people to access Ansible as a whole without mixing with other components. This devops repo will serve as a central hub for all the OpenSearch Project related automations. Let me know what you think. Thanks. |
@peterzhuamazon Great, I will move this PR to new repo. Its better to maintain the separate repo as it gets complex when we add other features. |
That is exactly the reason why we make the standalone repo. |
Please close this PR once you raise the other one and link this one there. |
@peterzhuamazon I moved this PR to new ansible repo(opensearch-project/ansible-playbook#2). |
Thanks @saravanan30erd I will close this one and lets work on the other one, I migrate opensearch-project/ansible-playbook#3 to ansible playbook repo as well. Thanks. |
Description
Ansible scripts for opensearch setup
Issues Resolved
#14
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.