Skip to content

Commit

Permalink
tidy slurm_tools
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb committed Jan 16, 2025
1 parent 6c390cf commit 62778b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 32 deletions.
36 changes: 6 additions & 30 deletions ansible/roles/slurm_tools/README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,12 @@
stackhpc.slurm_openstack_tools.pytools
slurm_tools
=========

Installs python-based tools from https://github.com/stackhpc/slurm-openstack-tools.git into `/opt/slurm-tools/bin/`.

Requirements
------------
Install python-based tools from https://github.com/stackhpc/slurm-openstack-tools.git into `/opt/slurm-tools/bin/`.

Role Variables
--------------

`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
------------------

- `pytools_editable`: Optional bool. Whether to install the package using `pip`'s
editable mode (installing source to `/opt/slurm-tools/src`). Default `false`.
- `pytools_gitref`: Optional. Git branch/tag/commit etc to install. Default `master`.
- `pytools_user`: Optional user to install as. Default `root`.
1 change: 0 additions & 1 deletion ansible/roles/slurm_tools/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# defaults file for pytools
pytools_editable: false
pytools_gitref: master
pytools_user: root
1 change: 0 additions & 1 deletion ansible/roles/slurm_tools/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@
state: latest
become: true
become_user: "{{ pytools_user }}"
# become_flags: -H #'-s /bin/bash' # as has shell specified as /sbin/nologin

0 comments on commit 62778b3

Please sign in to comment.