Skip to content
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

Rollover alias script execution added #1110

Merged
merged 4 commits into from
Nov 14, 2023
Merged

Conversation

teddytpc1
Copy link
Member

This PR closes #1109.

@teddytpc1 teddytpc1 linked an issue Nov 1, 2023 that may be closed by this pull request
@teddytpc1 teddytpc1 self-assigned this Nov 1, 2023
Copy link
Member

@AlexRuiz7 AlexRuiz7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@c-bordon
Copy link
Member

New tests after changes:

AIO:

TASK [../roles/wazuh/wazuh-indexer : Initialize the Opensearch security index in Wazuh indexer] ********************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/wazuh-indexer : Initialize ISM script] ********************************************************************************************************************************************************************************
changed: [testing_ansible_aio]

...
TASK [../roles/wazuh/wazuh-dashboard : Copy the certificates from local to the Wazuh dashboard instance] ***********************************************************************************************************************************
changed: [testing_ansible_aio] => (item=root-ca.pem)
changed: [testing_ansible_aio] => (item=node-1-key.pem)
changed: [testing_ansible_aio] => (item=node-1.pem)

TASK [../roles/wazuh/wazuh-dashboard : Copy Configuration File] ****************************************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/wazuh-dashboard : Ensuring Wazuh dashboard directory owner] ***********************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/wazuh-dashboard : Wait for Wazuh-Indexer port] ************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/wazuh-dashboard : Select correct API protocol] ************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/wazuh-dashboard : Attempting to delete legacy Wazuh index if exists] **************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/wazuh-dashboard : Create Wazuh Plugin config directory] ***************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/wazuh-dashboard : Configure Wazuh Dashboard Plugin] *******************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/wazuh-dashboard : Configure opensearch.password in opensearch_dashboards.keystore] ************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/wazuh-dashboard : Ensure Wazuh dashboard started and enabled] *********************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/wazuh-dashboard : Remove Wazuh dashboard repository (and clean up left-over metadata)] ********************************************************************************************************************************
skipping: [testing_ansible_aio]

RUNNING HANDLER [../roles/wazuh/ansible-filebeat-oss : restart filebeat] *******************************************************************************************************************************************************************
changed: [testing_ansible_aio]

RUNNING HANDLER [../roles/wazuh/wazuh-dashboard : restart wazuh-dashboard] *****************************************************************************************************************************************************************
changed: [testing_ansible_aio]

PLAY RECAP *********************************************************************************************************************************************************************************************************************************
testing_ansible_aio        : ok=99   changed=33   unreachable=0    failed=0    skipped=86   rescued=0    ignored=0   

Screenshot_20231113_145452

@c-bordon
Copy link
Member

Distributed test

TASK [../roles/wazuh/wazuh-dashboard : Remove Dashboard configuration file] ****************************************************************************************************************************************************************
changed: [dashboard]

TASK [../roles/wazuh/wazuh-dashboard : Ensure Dashboard certificates directory permissions.] ***********************************************************************************************************************************************
changed: [dashboard]

TASK [../roles/wazuh/wazuh-dashboard : Copy the certificates from local to the Wazuh dashboard instance] ***********************************************************************************************************************************
changed: [dashboard] => (item=root-ca.pem)
changed: [dashboard] => (item=node-6-key.pem)
changed: [dashboard] => (item=node-6.pem)

TASK [../roles/wazuh/wazuh-dashboard : Copy Configuration File] ****************************************************************************************************************************************************************************
changed: [dashboard]

TASK [../roles/wazuh/wazuh-dashboard : Ensuring Wazuh dashboard directory owner] ***********************************************************************************************************************************************************
ok: [dashboard]

TASK [../roles/wazuh/wazuh-dashboard : Wait for Wazuh-Indexer port] ************************************************************************************************************************************************************************
ok: [dashboard]

TASK [../roles/wazuh/wazuh-dashboard : Select correct API protocol] ************************************************************************************************************************************************************************
ok: [dashboard]

TASK [../roles/wazuh/wazuh-dashboard : Attempting to delete legacy Wazuh index if exists] **************************************************************************************************************************************************
ok: [dashboard]

TASK [../roles/wazuh/wazuh-dashboard : Create Wazuh Plugin config directory] ***************************************************************************************************************************************************************
ok: [dashboard]

TASK [../roles/wazuh/wazuh-dashboard : Configure Wazuh Dashboard Plugin] *******************************************************************************************************************************************************************
ok: [dashboard]

TASK [../roles/wazuh/wazuh-dashboard : Configure opensearch.password in opensearch_dashboards.keystore] ************************************************************************************************************************************
changed: [dashboard]

TASK [../roles/wazuh/wazuh-dashboard : Ensure Wazuh dashboard started and enabled] *********************************************************************************************************************************************************
changed: [dashboard]

TASK [../roles/wazuh/wazuh-dashboard : Remove Wazuh dashboard repository (and clean up left-over metadata)] ********************************************************************************************************************************
skipping: [dashboard]

RUNNING HANDLER [../roles/wazuh/wazuh-dashboard : restart wazuh-dashboard] *****************************************************************************************************************************************************************
changed: [dashboard]

PLAY RECAP *********************************************************************************************************************************************************************************************************************************
dashboard                  : ok=21   changed=8    unreachable=0    failed=0    skipped=6    rescued=0    ignored=0   
manager                    : ok=45   changed=1    unreachable=0    failed=0    skipped=31   rescued=0    ignored=0   
wi1                        : ok=33   changed=11   unreachable=0    failed=0    skipped=50   rescued=0    ignored=0   
wi2                        : ok=29   changed=11   unreachable=0    failed=0    skipped=19   rescued=0    ignored=0   
wi3                        : ok=29   changed=11   unreachable=0    failed=0    skipped=19   rescued=0    ignored=0   
worker                     : ok=42   changed=0    unreachable=0    failed=0    skipped=34   rescued=0    ignored=0 

Screenshot_20231113_162913

Screenshot_20231113_162934

inventory:

wi1 ansible_host=44.213.71.65 private_ip=172.31.70.105 indexer_node_name=node-1 ansible_port=2250
wi2 ansible_host=18.207.134.63 private_ip=172.31.73.148 indexer_node_name=node-2 ansible_port=2250
wi3 ansible_host=34.204.166.11 private_ip=172.31.79.125 indexer_node_name=node-3 ansible_port=2250
dashboard  ansible_host=3.238.244.223 private_ip=172.31.77.45 ansible_port=2250
manager ansible_host=3.238.248.173 private_ip=172.31.78.127 ansible_port=2250
worker  ansible_host=3.236.109.185 private_ip=172.31.77.95 ansible_port=2250

[wi_cluster]
wi1
wi2
wi3

[all:vars]
ansible_ssh_user=ubuntu
ansible_ssh_private_key_file=/home/cbordon/Downloads/pr-828.pem
ansible_ssh_extra_args='-o StrictHostKeyChecking=no'

@c-bordon c-bordon requested a review from davidcr01 November 13, 2023 19:30
@c-bordon c-bordon merged commit 971ea76 into 4.8.0 Nov 14, 2023
14 of 20 checks passed
@c-bordon c-bordon deleted the 1109-enhacement-rolloveralias branch November 14, 2023 11:16
@davidcr01 davidcr01 mentioned this pull request Feb 20, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run Run indexer-ism-init.sh script
5 participants