-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add possibility to install a custom compiled slurm package #32
Open
ahmam
wants to merge
14
commits into
galaxyproject:main
Choose a base branch
from
mila-iqia:mila
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b713a8a
Add new custom services (#2)
ahmam 68c88a2
install custom slurm packages (#1)
ahmam b146ced
Merge remote-tracking branch 'upstream/main' into mila
btravouillon c193df0
Fix typo in handler name
clil16 4951fbc
Remove key 'SlurmctldPidFile' from __slurmdbd_config_default
cat-bro c5c4597
Allow to define several SlurmctldHost in a list (#4)
btravouillon e265c54
Added template for plugstack.conf
phuelsdunk 7344fe3
Make sure slurm_start_services is a boolean
btravouillon b95ab5f
Do not setup a new SlurmDBD cluster by default
btravouillon fe5ff1b
Restart slurmd and slurmctld after a Slurm upgrade
btravouillon 92b5b5b
Restart slurm services after a Slurm upgrade
btravouillon b1f1354
Add support for job_container.conf
btravouillon a59dd8b
Skip service reload when restart already triggered
btravouillon f2ec77d
Update galaxy_info for import into mila namespace
btravouillon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=Slurm controller daemon | ||
After=network.target slurmdbd.service munge.service | ||
ConditionPathExists=/etc/slurm/slurm.conf | ||
|
||
[Service] | ||
Type=simple | ||
EnvironmentFile=-/etc/sysconfig/slurmctld | ||
ExecStart=/opt/slurm/sbin/slurmctld $SLURMCTLD_OPTIONS | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
PIDFile=/var/run/slurm/slurmctld.pid | ||
RuntimeDirectory=slurm | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[Unit] | ||
Description=Slurm node daemon | ||
After=network.target munge.service | ||
Wants=network-online.target | ||
ConditionPathExists=/etc/slurm/slurm.conf | ||
|
||
[Service] | ||
Type=simple | ||
EnvironmentFile=-/etc/default/slurmd | ||
ExecStartPre=/bin/mkdir -p /var/run/slurm | ||
ExecStart=/opt/slurm/sbin/slurmd -D -s $SLURMD_OPTIONS | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
PIDFile=/var/run/slurm/slurmd.pid | ||
KillMode=process | ||
LimitNOFILE=131072 | ||
LimitMEMLOCK=infinity | ||
LimitSTACK=infinity | ||
Delegate=yes | ||
TasksMax=20000 | ||
|
||
|
||
[Install] | ||
WantedBy=multi-user.target |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[Unit] | ||
Description=Slurm controller daemon | ||
After=network.target munge.service mysql.service mysqld.service mariadb.service | ||
Wants=network-online.target | ||
ConditionPathExists=/etc/slurm/slurm.conf | ||
|
||
[Service] | ||
Type=simple | ||
EnvironmentFile=-/etc/default/slurmdbd | ||
ExecStartPre=-/usr/bin/ls /var/lib/slurm/slurmctld | ||
ExecStart=/opt/slurm/sbin/slurmdbd -D -s $SLURMDBD_OPTIONS | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
PIDFile=/var/run/slurm/slurmdbd.pid | ||
LimitNOFILE=65536 | ||
RuntimeDirectory=slurm | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
- name: Install GPG-KEY | ||
ansible.builtin.apt_key: | ||
url: "{{ slurm_gpg_key }}" | ||
keyring: /etc/apt/trusted.gpg.d/slurm.gpg | ||
when: slurm_gpg_key is defined | ||
|
||
- name: Configure Slurm repository | ||
ansible.builtin.copy: | ||
content: "{{ slurm_apt_repository }}\n" | ||
dest: /etc/apt/sources.list.d/slurm.list | ||
mode: 0644 | ||
|
||
- name: Configure APT preferences for Slurm repository | ||
ansible.builtin.copy: | ||
content: | | ||
Package: * | ||
Pin: release o=SLURM | ||
Pin-Priority: {{ slurm_apt_priority }} | ||
dest: /etc/apt/preferences.d/priority-slurm | ||
mode: 0644 | ||
when: slurm_apt_priority is defined | ||
|
||
- name: "Update repository cache" | ||
ansible.builtin.apt: | ||
update_cache: yes |
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
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 |
---|---|---|
|
@@ -16,5 +16,5 @@ | |
become: yes | ||
become_user: root | ||
notify: | ||
- reload slurmdbd | ||
- Reload slurmdbd | ||
when: __cluster_not_setup |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this support RHEL-like distros as well?
At least, this task should not execute when a host's family OS is not Debian.