-
Notifications
You must be signed in to change notification settings - Fork 96
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 playbook Initiative #2
Ansible playbook Initiative #2
Conversation
Hi @DandyDeveloper @TheAlgo we have created the ansible playbook repo in OpenSearch Project and ask @saravanan30erd to migrate his PR here. Please continue the review and if no issues, we can get this commit into main. The old PR has been closed in devops repo. @hyandell Alreay approved the PR there, would love you to approve again here. Thanks. |
I will test one more time today before merge it. Thanks. |
Have some issues the other day testing it on a centos7 locally. |
Update: both @TheAlgo and I are busy with other projects, also 1.1.0 is coming up so our time is rather limited. If any of the other contributors can take a try would greatly appreciated. Apologize for the inconvinience and thanks for understanding. |
@peterzhuamazon Yes, I am happy to help. I will review and comment. |
Hi @mprimeaux any progress on the testing? Thanks. |
@peterzhuamazon I will look at this today. My apologies for the delay. We've been also working on new platform releases. |
@mprimeaux any progress? |
LGTM |
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.
LGTM
Thanks @mprimeaux and I think I need some help to get the test working.
The ssh connection is working but I have no idea why it keeps saying this error. If anyone can help me debug this would be great, @saravanan30erd Any ideas? Thanks. |
@peterzhuamazon I think it looks like issue with user, I tested this playbook on root user only. Could you try with |
I need to tweak the EC2 then. |
Hi @saravanan30erd seems like there is some failure during deployment:
Could you help take a look on this? Attach logs: |
Based on the above error, I think there is an issue with your In
In your case, you should change your hosts file as below
|
Got it. Will try again soon. Sorry I am also new to Ansible, so this is a learning experience to me. Thanks. |
The deploy success but seems like the password not setting correctly on OpenSearch:
|
@peterzhuamazon If ansible deployment is completed without any issues mean it should work. Bcoz I am checking status of the opensearch cluster as the last step to confirm everything works fine. Could you provide the output of last two tasks??
|
|
@peterzhuamazon It works fine for all the passwords (bcoz mostly its unique) but only
Now I have fixed the search & replace method by using condition which will exactly match and replace only the password text not any other texts in configuration file. If it works, you will see the below output.
|
Thanks @saravanan30erd Working pretty well. Just one more question is there any documentations on Thanks. |
In sed, you can put a regexp (between /…/) before the |
Ah, didnt realize it is a regex to replace the line Thanks very much. |
@peterzhuamazon Sure, will add pointer soon. |
Refer: opensearch-project/opensearch-devops#60
Description
Ansible playbook Initiative
Issues Resolved
Single node installation
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.