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

Fix OVA and AMI workflows Python error #80

Closed
wants to merge 41 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
5d37bc2
added break-system-packages in pip commands
CarlosALgit Oct 14, 2024
48a50d9
add break-system-packages to the pip command
CarlosALgit Oct 14, 2024
c2a1948
added --break-system-packages to all pip commands in OVA workflow
CarlosALgit Oct 14, 2024
5d23be6
updated changelog
CarlosALgit Oct 14, 2024
65cd8ad
updated changelog
CarlosALgit Oct 14, 2024
f8070ca
added venv usage to ami workflow
CarlosALgit Oct 15, 2024
e6940e5
added venv usage to OVA workflow
CarlosALgit Oct 15, 2024
22deade
removed --user from ansible installation
CarlosALgit Oct 15, 2024
7f1b4a6
added activation of the venv
CarlosALgit Oct 15, 2024
35afc4a
added venv activate missing
CarlosALgit Oct 15, 2024
7a35e4f
added venv activate missing from OVA workflow
CarlosALgit Oct 15, 2024
f0de303
removed venv activate when creating instance
CarlosALgit Oct 15, 2024
b7b625d
add github.workspace to the activation of the venv
CarlosALgit Oct 15, 2024
a3906b6
delete venv activation in ansible playbook run
CarlosALgit Oct 15, 2024
c10cb6a
specify the location of the python interpreter
CarlosALgit Nov 4, 2024
a0bdf15
added view parameters step
CarlosALgit Nov 4, 2024
042bb82
changed location of the python interpreter
CarlosALgit Nov 4, 2024
a0dfd6f
fix python interpreter location
CarlosALgit Nov 4, 2024
f1b1750
added verification of the venv path
CarlosALgit Nov 4, 2024
2cddb32
changed path of the interpreter
CarlosALgit Nov 4, 2024
1c3f74d
add more info to the output
CarlosALgit Nov 4, 2024
e963b20
added which python command
CarlosALgit Nov 4, 2024
1a0c8b2
activated venv in ansible job
CarlosALgit Nov 4, 2024
168c689
added python path to github env
CarlosALgit Nov 5, 2024
27000fd
added missing source activate
CarlosALgit Nov 5, 2024
37d3de1
added ansible python interpreter
CarlosALgit Nov 5, 2024
44420b3
ensure python is installed
CarlosALgit Nov 5, 2024
ea0c243
install python3
CarlosALgit Nov 5, 2024
389aabf
added which python3
CarlosALgit Nov 5, 2024
050a420
added python3 interpreter path
CarlosALgit Nov 5, 2024
3aeb27a
remove venv
CarlosALgit Nov 5, 2024
ea65042
removed python3 interpreter path
CarlosALgit Nov 5, 2024
741dc60
added venv but only when installing ansible
CarlosALgit Nov 5, 2024
befeb68
install python3 in the instance
CarlosALgit Nov 5, 2024
cee6ba6
fixed ansible host variable call
CarlosALgit Nov 5, 2024
a987b1c
fixed install python command
CarlosALgit Nov 5, 2024
7abbf1c
removed yum update
CarlosALgit Nov 5, 2024
58af99b
added dnf4 as backend
CarlosALgit Nov 5, 2024
90cd3b4
changed package manager
CarlosALgit Nov 5, 2024
c2023ca
changed backend to yum
CarlosALgit Nov 5, 2024
d209092
changed yum to shell
CarlosALgit Nov 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/builder_OVA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Ansible
run: sudo apt-get update && sudo apt install -y python3 jq sshpass && python3 -m pip install --user ansible-core==2.16 && pip install pyyaml && ansible-galaxy collection install community.general
run: sudo apt-get update && sudo apt install -y python3 jq sshpass && python3 -m pip install --user ansible-core==2.16 --break-system-packages && pip install pyyaml --break-system-packages && ansible-galaxy collection install community.general

- name: Checkout wazuh/wazuh-virtual-machines repository
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/packages_builder_ami.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
echo WAZUH_VERSION=$WAZUH_VERSION >> $GITHUB_ENV

- name: Install Ansible
run: sudo apt-get update && sudo apt install -y python3 && python3 -m pip install --user ansible-core==2.16
run: sudo apt-get update && sudo apt install -y python3 && python3 -m pip install --user ansible-core==2.16 --break-system-packages

- name: Ansible version
run: ansible --version
Expand All @@ -95,7 +95,7 @@ jobs:

- name: Install and set allocator requirements
run: |
pip3 install -r wazuh-automation/deployability/deps/requirements.txt
pip3 install -r wazuh-automation/deployability/deps/requirements.txt --break-system-packages

- name: Execute allocator module that will create the base instance
id: alloc_vm_ami
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file.

### Fixed

- Fix OVA and AMI workflows Python error. ([#80](https://github.com/wazuh/wazuh-virtual-machines/pull/80))
- Deleted dashboard logs cleanup in OVA local build([#57](https://github.com/wazuh/wazuh-virtual-machines/pull/57))
- Fix typos and add news inputs in the AMI workflow header ([#35](https://github.com/wazuh/wazuh-virtual-machines/pull/35))

Expand Down