Skip to content

Commit

Permalink
Merge pull request #2802 from wazuh/change/2794-adapt-wia-and-wpt-to-…
Browse files Browse the repository at this point in the history
…wazuh-keystore-for-indexer-configuration

VD keystore changes in Password tool
  • Loading branch information
davidcr01 authored Feb 2, 2024
2 parents b3517d6 + a1386cc commit 6a954de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions unattended_installer/install_functions/manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ function manager_configure(){
fi
eval "sed -i s/filebeat.pem/${server_node_names[0]}.pem/ /var/ossec/etc/ossec.conf ${debug}"
eval "sed -i s/filebeat-key.pem/${server_node_names[0]}-key.pem/ /var/ossec/etc/ossec.conf ${debug}"
common_logger -d "Setting provisional Wazuh indexer password."
eval "/var/ossec/bin/wazuh-keystore -f indexer -k username -v admin"
eval "/var/ossec/bin/wazuh-keystore -f indexer -k password -v admin"
common_logger "Wazuh manager vulnerability detection configuration finished."
}

Expand Down
2 changes: 1 addition & 1 deletion unattended_installer/passwords_tool/passwordsFunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function passwords_changePassword() {
echo "${conf}" > /etc/filebeat/filebeat.yml
fi
passwords_restartService "filebeat"
eval "sed -i 's/<password>.*<\/password>/<password>${adminpass}<\/password>/g' /var/ossec/etc/ossec.conf ${debug}"
eval "/var/ossec/bin/wazuh-keystore -f indexer -k password -v ${adminpass}"
passwords_restartService "wazuh-manager"
fi
fi
Expand Down

0 comments on commit 6a954de

Please sign in to comment.