Closed teddytpc1 closed 1 month ago
The workflow for creating the Wazuh Puppet module was created in the wazuh/wazuh-puppet repository and its execution was tested: https://github.com/wazuh/wazuh-puppet/actions/runs/10813987146
It was verified that the workflow creates the module, uploads it as an artifact to Github Actions and the functionality of uploading the file to the corresponding S3 bucket was also tested.
Hi @vcerenu ,
Here are some specs regarding this issue that are related to the https://github.com/wazuh/internal-devel-requests/issues/187 criteria:
wazuh-wazuh-4.9.0_<shortcommitsha>.tar.gz
for dev and wazuh-wazuh-4.9.0.tar.gz
for candidates (see is_stage
).s3://packages-dev.internal.wazuh.com/development/wazuh/4.x/secondary/puppet-module/
NOTE:
The upload path to S3 was modified, the name of the Puppet module file was added for executions of different stages before the production package, and the workflow inputs were modified to have a better relationship with the other workflows created.
Execution for stage environments: https://github.com/wazuh/wazuh-puppet/actions/runs/10888749953
Execution for Production environments: https://github.com/wazuh/wazuh-puppet/actions/runs/10888742198
Added modification of the key version value within the metadata.json file and added a stage to modify it in case of a development version.
https://github.com/wazuh/wazuh-puppet/actions/runs/10909059398
The revision number was deleted from metadata file.
Stage Execution: https://github.com/wazuh/wazuh-puppet/actions/runs/10940166613
No stage execution: https://github.com/wazuh/wazuh-puppet/actions/runs/10940152573
I am reopening this issue because our package generation script needs an undocumented mandatory input field and behaviors.
Specs:
run-name: Puppet module ${{ inputs.is_stage && ' - is stage' || '' }}${{ inputs.checksum && ' - checksum' || '' }} ${{ inputs.id }}
workflow_dispatch
and workflow_call
in order to be aligned with already GHA development
id:
type: string
required: false
checksum:
type: boolean
required: false
id:
type: string
description: |
ID used to identify the workflow uniquely.
required: false
checksum:
type: boolean
description: |
Generate package checksum.
Default is 'false'.
required: false
.sha512
Checksum development was here https://github.com/wazuh/wazuh-puppet/pull/1119
Description
Because of the
Wazuh packages redesign tier 2
objective we need to migrate the Puppet forge build and publication from thePackages_builder
pipeline to a GHA.Tasks
pre-release
locationChanges
packages-dev.internal.wazuh.com
. https://github.com/wazuh/internal-devel-requests/issues/1555puppet_module_builder_gha_workflow
policy to only allow performing actions within thepackages-dev.internal.wazuh.com
in the previously defined folder.packages-dev.internal.wazuh.com
Additional changes
metadata.json
file (-1
by default). In case of a new revision, the value will be updated in the new branch for that release/revision.is_stage
GHA input isfalse
the value of the version in metadata.json should be updated before the module generation. The new name will have the module version, revision, and commit. This will replace the currentModify name for stage build
step.