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

badfish missing library #188

Merged
merged 2 commits into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions ansible-ipi-install/roles/scale-node-prep/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@
virtualenv_command: /usr/bin/python3 -m venv
virtualenv: "{{ badfish_venv }}"

- name: detect python version
shell: |
/usr/bin/python3 --version | awk '{print $2}'
register: python_version

- name: Include library
shell:
chdir: "{{ badfish_tempdir.path }}"
cmd: |
source {{ badfish_venv }}/bin/activate
ln -s {{ badfish_tempdir.path }}/src/helpers/ {{ badfish_venv }}/lib/python{{ python_version.stdout.split('.')[0] }}.{{ python_version.stdout.split('.')[1] }}/site-packages/helpers
- name: Clean network interfaces created by lab automation
shell: |
/root/clean-interfaces.sh --nuke
Expand Down
12 changes: 12 additions & 0 deletions ansible-ipi-install/roles/shared-labs-prep/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@
requirements: "{{ badfish_tempdir.path}}/requirements.txt"
virtualenv_command: /usr/bin/python3 -m venv
virtualenv: "{{ badfish_venv }}"

- name: detect python version
shell: |
/usr/bin/python3 --version | awk '{print $2}'
register: python_version

- name: Include library
shell:
chdir: "{{ badfish_tempdir.path }}"
cmd: |
source {{ badfish_venv }}/bin/activate
ln -s {{ badfish_tempdir.path }}/src/helpers/ {{ badfish_venv }}/lib/python{{ python_version.stdout.split('.')[0] }}.{{ python_version.stdout.split('.')[1] }}/site-packages/helpers
when: dell_nodes | length > 0

- name: Clean network interfaces created by lab automation
Expand Down