Closed c-bordon closed 3 weeks ago
Please consider the next information, because our package generation script needs an undocumented mandatory input field and behaviors.
Specs:
run-name: Build AMI ${{ inputs.id }}
id:
type: string
required: false
id:
type: string
description: |
ID used to identify the workflow uniquely.
required: false
The changes related to the installation of Wazuh (Related: https://github.com/wazuh/wazuh-installation-assistant/issues/63) on the AMI have been made in the playbook. Additionally, necessary updates have been made to the workflow:
id
has been added.WAZUH_VIRTUAL_MACHINES_REFERENCE
has been changed to be used as an environment variable.SUFFIX_AMI
has been modified to AMI_REVISION
.All these changes have been tested by running the following workflow, which completed successfully:
After running the workflow, if we create an instance with the generated AMI, we can see that the packages are installed, and the dashboard is accessible without any issues.
$ ssh -i test-wvm-48-AMI.pem -p 2200 wazuh-user@XX.XX.XX.XX
Last login: Wed Sep 25 10:39:56 2024 from XX.XX.XX.XX
wwwwww. wwwwwww. wwwwwww.
wwwwwww. wwwwwww. wwwwwww.
wwwwww. wwwwwwwww. wwwwwww.
wwwwwww. wwwwwwwww. wwwwwww.
wwwwww. wwwwwwwwwww. wwwwwww.
wwwwwww. wwwwwwwwwww. wwwwwww.
wwwwww. wwwwww.wwwwww. wwwwwww.
wwwwwww. wwwww. wwwwww. wwwwwww.
wwwwww. wwwwww. wwwwww. wwwwwww.
wwwwwww. wwwww. wwwwww. wwwwwww.
wwwwww. wwwwww. wwwwww.wwwwwww.
wwwwwww.wwwww. wwwwww.wwwwwww.
wwwwwwwwwwww. wwwwwwwwwwww.
wwwwwwwwwww. wwwwwwwwwwww. oooooo
wwwwwwwwww. wwwwwwwwww. oooooooo
wwwwwwwww. wwwwwwwwww. oooooooooo
wwwwwwww. wwwwwwww. oooooooooo
wwwwwww. wwwwwwww. oooooooo
wwwwww. wwwwww. oooooo
WAZUH Open Source Security Platform
https://wazuh.com/
[wazuh-user@wazuh-server ~]$ rpm -qa | grep wazuh
wazuh-indexer-4.9.0-1.x86_64
wazuh-manager-4.9.0-1.x86_64
wazuh-dashboard-4.9.0-2.x86_64
related: https://github.com/wazuh/wazuh-installation-assistant/issues/63
Regarding the issue, the installation assistant allows you to choose by parameter from which repository you want to install the packages.
https://github.com/wazuh/wazuh-virtual-machines/blob/192030f2b6388b143916b1204dfed02c3873773b/ova/generate_ova.sh#L232-L238
https://github.com/wazuh/wazuh-virtual-machines/blob/192030f2b6388b143916b1204dfed02c3873773b/ova/generate_ova.sh#L256
Tasks
SUFFIX_AMI
input toAMI_REVISION