-
Notifications
You must be signed in to change notification settings - Fork 31
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
89 changed files
with
1,402 additions
and
553 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Reboot compute nodes via slurm. Nodes will be rebuilt if `image_id` in inventory is different to the currently-provisioned image. | ||
# Example: | ||
# ansible-playbook -v ansible/adhoc/reboot_via_slurm.yml | ||
|
||
- hosts: login | ||
run_once: true | ||
become: yes | ||
gather_facts: no | ||
tasks: | ||
- name: Submit a Slurm job to reboot compute nodes | ||
ansible.builtin.shell: | | ||
set -e | ||
srun --reboot -N 2 uptime | ||
become_user: root | ||
register: slurm_result | ||
failed_when: slurm_result.rc != 0 | ||
|
||
- name: Fetch Slurm controller logs if reboot fails | ||
ansible.builtin.shell: | | ||
journalctl -u slurmctld --since "10 minutes ago" | tail -n 50 | ||
become_user: root | ||
register: slurm_logs | ||
when: slurm_result.rc != 0 | ||
delegate_to: "{{ groups['control'] | first }}" |
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
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,3 @@ | ||
#cacerts_dest_dir: /etc/pki/ca-trust/source/anchors/ | ||
cacerts_cert_dir: "{{ appliances_environment_root }}/cacerts" | ||
cacerts_update: true |
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,16 @@ | ||
--- | ||
|
||
- name: Copy all certificates | ||
copy: | ||
src: "{{ item }}" | ||
dest: /etc/pki/ca-trust/source/anchors/ | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
with_fileglob: | ||
- "{{ cacerts_cert_dir }}/*" | ||
become: true | ||
|
||
- name: Update trust store | ||
command: update-ca-trust extract | ||
become: true |
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,11 @@ | ||
- name: Copy cacerts from deploy host to /exports/cluster/cacerts/ | ||
copy: | ||
src: "{{ item }}" | ||
dest: /exports/cluster/cacerts/ | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
with_fileglob: | ||
- "{{ cacerts_cert_dir }}/*" | ||
delegate_to: "{{ groups['control'] | first }}" | ||
run_once: true |
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 @@ | ||
- import_tasks: configure.yml |
Oops, something went wrong.