-
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
Become: false for operation /tmp/opensearch-nodecerts #51
Conversation
Signed-off-by: Anton Patsev <patsev.anton@gmail.com>
@patsevanton There is one more
Additionally please add how to run the playbook using non-root in README. For running with non-root user (which have sudo privileges), we need to to below changes
and run the playbook using
Please add this details in README (Don't forget to sign the commit :)- ) @patsevanton @peterzhuamazon I tested with both users using Please test it with |
Signed-off-by: Anton Patsev <patsev.anton@gmail.com>
Signed-off-by: Anton Patsev <patsev.anton@gmail.com>
Added Cannot test |
@saravanan30erd could you approve? |
Will do. I need to test it with |
Hi @saravanan30erd let me know the status of this. |
@peterzhuamazon I tested for multiple node setup with non-root user (ec2-user in EC2), it works fine. We can merge this now. Logs% ansible-playbook -i inventories/opensearch/hosts opensearch.yml --extra-vars "admin_password=Test@123 kibanaserver_password=Test@6789" --become [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.PLAY [opensearch installation & configuration] ***************************************************************************************************** TASK [Gathering Facts] ***************************************************************************************************************************** TASK [linux/opensearch : hostname] ***************************************************************************************************************** TASK [linux/opensearch : Disable the selinux] ****************************************************************************************************** TASK [linux/opensearch : Hosts | populate inventory into hosts file] ******************************************************************************* TASK [linux/opensearch : Set vm.max_map_count in sysctl.conf] ************************************************************************************** TASK [linux/opensearch : Set open files limit in sysctl.conf] ************************************************************************************** TASK [linux/opensearch : OpenSearch Install | Download opensearch 1.3.1] *************************************************************************** TASK [linux/opensearch : OpenSearch Install | Create opensearch user] ****************************************************************************** TASK [linux/opensearch : OpenSearch Install | Create home directory] ******************************************************************************* TASK [linux/opensearch : OpenSearch Install | Extract the tar file] ******************************************************************************** TASK [linux/opensearch : OpenSearch Install | Copy Configuration File] ***************************************************************************** TASK [linux/opensearch : OpenSearch Install | Copy jvm.options File for Instance] ****************************************************************** TASK [linux/opensearch : OpenSearch Install | create systemd service] ****************************************************************************** TASK [linux/opensearch : Security Plugin configuration | Create local temporary directory for certificates generation] ***************************** TASK [linux/opensearch : Security Plugin configuration | Download certificates generation tool] **************************************************** TASK [linux/opensearch : Security Plugin configuration | Extract the certificates generation tool] ************************************************* TASK [linux/opensearch : Security Plugin configuration | Make the executable file] ***************************************************************** TASK [linux/opensearch : Security Plugin configuration | Prepare the certificates generation template file] **************************************** TASK [linux/opensearch : Security Plugin configuration | Generate the node & admin certificates in local] ****************************************** TASK [linux/opensearch : Security Plugin configuration | Copy the node & admin certificates to opensearch nodes] *********************************** TASK [linux/opensearch : Security Plugin configuration | Copy the security configuration file 1 to cluster] **************************************** TASK [linux/opensearch : Security Plugin configuration | Copy the security configuration file 2 to cluster] **************************************** TASK [linux/opensearch : Security Plugin configuration | Prepare the opensearch security configuration file] *************************************** TASK [linux/opensearch : Security Plugin configuration | Set the file ownerships] ****************************************************************** TASK [linux/opensearch : Security Plugin configuration | Set the folder permission] **************************************************************** TASK [linux/opensearch : Security Plugin configuration | Restart opensearch with security configuration] ******************************************* TASK [linux/opensearch : Pause for 3 seconds to provide sometime for OpenSearch start] ************************************************************* TASK [linux/opensearch : Security Plugin configuration | Copy the opensearch security internal users template] ************************************* TASK [linux/opensearch : Security Plugin configuration | Set the Admin user password] ************************************************************** TASK [linux/opensearch : Security Plugin configuration | Set the kibanaserver user pasword] ******************************************************** TASK [linux/opensearch : Security Plugin configuration | Initialize the opensearch security index in opensearch] *********************************** TASK [linux/opensearch : Security Plugin configuration | Cleanup local temporary directory] ******************************************************** TASK [linux/opensearch : Remove TASK [linux/opensearch : Make sure opensearch is started] ****************************************************************************************** TASK [linux/opensearch : Get all the installed ES plugins] ***************************************************************************************** TASK [linux/opensearch : Show all the installed ES plugins] **************************************************************************************** TASK [linux/opensearch : Wait for opensearch to startup] ******************************************************************************************* TASK [linux/opensearch : Check the opensearch status] ********************************************************************************************** TASK [linux/opensearch : Show the opensearch status] *********************************************************************************************** TASK [linux/opensearch : Verify the roles of opensearch cluster nodes] ***************************************************************************** TASK [linux/opensearch : Show the roles of opensearch cluster nodes] ******************************************************************************* PLAY [opensearch dashboards installation & configuration] ****************************************************************************************** TASK [Gathering Facts] ***************************************************************************************************************************** TASK [linux/dashboards : hostname] ***************************************************************************************************************** TASK [linux/dashboards : Disable the selinux] ****************************************************************************************************** TASK [linux/dashboards : Hosts | populate inventory into hosts file] ******************************************************************************* TASK [linux/dashboards : Set open files limit in sysctl.conf] ************************************************************************************** TASK [linux/dashboards : Dashboards Install | Download opensearch dashbaord 1.3.1] ***************************************************************** TASK [linux/dashboards : Dashboards Install | Create opensearch user] ****************************************************************************** TASK [linux/dashboards : Dashboards Install | Create home directory] ******************************************************************************* TASK [linux/dashboards : Dashboards Install | Extract the tar file] ******************************************************************************** TASK [linux/dashboards : Dashboards Install | Copy Configuration File] ***************************************************************************** TASK [linux/dashboards : Dashboards Install | create systemd service] ****************************************************************************** TASK [linux/dashboards : Make sure opensearch dashboards is started] ******************************************************************************* TASK [linux/dashboards : Get all the installed dashboards plugins] ********************************************************************************* TASK [linux/dashboards : Show all the installed dashboards plugins] ******************************************************************************** PLAY RECAP ***************************************************************************************************************************************** |
You can approve now as you are maintainer 😄 |
Signed-off-by: Anton Patsev <patsev.anton@gmail.com>
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.
Probably use non-root
user than use ec2-user
as the latter is specifically for AL2 AMI.
CentOS7 AMI uses centos
and Ubuntu uses ubuntu
and more.
Please let me know if this makes sense to you.
Thanks.
Signed-off-by: Anton Patsev <patsev.anton@gmail.com>
I created new commit: |
Thanks @patsevanton for the patience your PR is merged now. |
Signed-off-by: Anton Patsev patsev.anton@gmail.com
Description
Become: false for operation /tmp/opensearch-nodecerts
Issues Resolved
Fix #45
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.