-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup2: remove support for FGCI packaged slurm
- Loading branch information
Showing
13 changed files
with
9 additions
and
132 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
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 |
---|---|---|
@@ -1,25 +1,2 @@ | ||
--- | ||
|
||
#### Version | ||
|
||
- name: Get version of installed slurm RPM | ||
shell: yum list installed slurm | grep slurm | awk '{print $2}' | cut -d'-' -f1 | ||
register: reg_slurm_yum_version | ||
check_mode: no | ||
changed_when: False | ||
|
||
- name: Get version of installed slurm RPM major version | ||
shell: yum list installed slurm | grep slurm | awk '{print $2}' | cut -d'-' -f1|cut -d "." -f1-2|sed -e 's/\.//' | ||
register: reg_slurm_yum_version_major | ||
check_mode: no | ||
changed_when: False | ||
|
||
- name: Set fact with contents of fgci_slurmrepo_version with only the numbers | ||
set_fact: slurm_fact_fgci_slurmrepo_version="{{ fgci_slurmrepo_version | replace('fgcislurm', '')}}" | ||
|
||
- name: print custom facts in verbose mode | ||
debug: var=item verbosity=1 | ||
with_items: | ||
- "{{ reg_slurm_yum_version['stdout'] }}" | ||
- "{{ slurm_fact_fgci_slurmrepo_version }}" | ||
- "{{ reg_slurm_yum_version_major['stdout'] }}" |
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,25 +1,2 @@ | ||
--- | ||
|
||
#### Version | ||
|
||
- name: Get version of installed slurm DEB | ||
shell: dpkg -l slurm|grep "^ii"|awk '{print $3}'|cut -d'-' -f1 | ||
register: reg_slurm_yum_version | ||
check_mode: no | ||
changed_when: False | ||
|
||
- name: Get version of installed slurm DEB major version | ||
shell: dpkg -l slurm|grep "^ii"|awk '{print $3}'|cut -d'-' -f1|cut -d "." -f1-2|sed -e 's/\.//' | ||
register: reg_slurm_yum_version_major | ||
check_mode: no | ||
changed_when: False | ||
|
||
- name: Set fact with contents of fgci_slurmrepo_version with only the numbers | ||
set_fact: slurm_fact_fgci_slurmrepo_version="{{ fgci_slurmrepo_version | replace('fgcislurm', '')}}" | ||
|
||
- name: print custom facts in verbose mode | ||
debug: var=item verbosity=1 | ||
with_items: | ||
- "{{ reg_slurm_yum_version['stdout'] }}" | ||
- "{{ slurm_fact_fgci_slurmrepo_version }}" | ||
- "{{ reg_slurm_yum_version_major['stdout'] }}" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.