Skip to content

Commit

Permalink
badfish missing library (#188)
Browse files Browse the repository at this point in the history
* badfish missing module library

* badfish library for scaleup tasks
  • Loading branch information
mukrishn authored Dec 1, 2021
1 parent c904856 commit 52080ee
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
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

0 comments on commit 52080ee

Please sign in to comment.