-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
29 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,25 @@ | ||
stackhpc.slurm_openstack_tools.pytools | ||
pytools | ||
========= | ||
|
||
Installs python-based tools from https://github.com/stackhpc/slurm-openstack-tools.git into `/opt/slurm-tools/bin/`. | ||
|
||
Requirements | ||
------------ | ||
Install a python package into a venv. | ||
|
||
Role Variables | ||
-------------- | ||
- `pytools_python_package`: Optional. Name of `dnf` python package to use. Default `python3`. | ||
- `pytools_venv_path`: Required. Path to install at, e.g. `/opt/mytool`. | ||
- `pytools_venv_command`: Optional. Command to run to create venv. Default uses the `pytools_python_package` python's `venv` module. | ||
- `pytools_pip_name`: Required. Name or URL of python package to install, passed to [ansible.builtin.pip:name](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/pip_module.html#parameter-name). | ||
- `pytools_editable`: Optional. Whether to install the package using `pip`'s editable mode (installing source to `{{ pytools_venv_path/src }}`). Bool, default `false`. | ||
- `pytools_user`: Optional. User to install as. Default `root`. | ||
|
||
`pytools_editable`: Optional. Whether to install the package using `pip`'s editable mode (installing source to `/opt/slurm-tools/src`) - `true` or `false` (default). | ||
`pytools_gitref`: Optional. Git branch, version, commit etc to install. Default `master`. | ||
`pytools_user`: User to install as. Default `root`. | ||
|
||
Dependencies | ||
------------ | ||
None. | ||
|
||
Example Playbook | ||
---------------- | ||
|
||
- hosts: compute | ||
tasks: | ||
- import_role: | ||
name: stackhpc.slurm_openstack_tools.pytools | ||
|
||
License | ||
------- | ||
|
||
Apache-2.0 | ||
|
||
Author Information | ||
------------------ | ||
|
||
name: pytools | ||
vars: | ||
pytools_venv_path: /opt/slurm-tools | ||
pytools_pip_name: "git+https://github.com/stackhpc/slurm-openstack-tools.git@main#egg=slurm_openstack_tools" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
--- | ||
# defaults file for pytools | ||
pytools_python_package: python3 | ||
#pytools_venv_path: | ||
pytools_venv_command: "{{ pytools_python_package }} -m venv" | ||
#pytools_pip_name: | ||
pytools_editable: false | ||
pytools_gitref: master | ||
pytools_user: root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters