From 657cdd75df8a11d8c5dbecc4c86ca91a7789eecc Mon Sep 17 00:00:00 2001 From: Chris King <kingtc@uab.edu> Date: Thu, 28 Apr 2022 15:03:25 +0000 Subject: [PATCH] Changes to the base slurm image; start of gpu yaml --- ansible/node-gpu.yml | 6 ++++++ ansible/roles/cheaha.node/tasks/main.yml | 13 ++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 ansible/node-gpu.yml diff --git a/ansible/node-gpu.yml b/ansible/node-gpu.yml new file mode 100644 index 0000000..005f0af --- /dev/null +++ b/ansible/node-gpu.yml @@ -0,0 +1,6 @@ +--- +- name: Setup node for use as a cluster host with gpu packages + hosts: default + become: true + roles: + - cheaha.node diff --git a/ansible/roles/cheaha.node/tasks/main.yml b/ansible/roles/cheaha.node/tasks/main.yml index 9397ba9..e30ca99 100644 --- a/ansible/roles/cheaha.node/tasks/main.yml +++ b/ansible/roles/cheaha.node/tasks/main.yml @@ -75,6 +75,7 @@ - { path: /home, src: "gpfs.rc.uab.edu:/data/user/home", fstype: nfs, opts: _netdev,defaults } - { path: /data/project, src: "gpfs.rc.uab.edu:/data/project", fstype: nfs, opts: _netdev,defaults } - { path: /data/user, src: "gpfs.rc.uab.edu:/data/user", fstype: nfs, opts: _netdev,defaults } + - { path: /data/rc/apps, src: "gpfs.rc.uab.edu:/data/rc/apps", fstype: nfs, opts: _netdev,defaults } - name: Add ssh key for root access ansible.posix.authorized_key: user: root @@ -121,10 +122,16 @@ loop: - { dir: /local, mode: '0777' } - { dir: /scratch, mode: '0755' } -- name: Create symbolic link from /scratch/local to /local + - { dir: /share, mode: '0755' } + - { dir: /data/rc/apps, mode: '0755' } # this is only required for the symlink to be happy +- name: Create symbolic links ansible.builtin.file: - src: /local - dest: /scratch/local + src: "{{ item.src }}" + dest: "{{ item.dest }}" owner: root group: root + force: yes state: link + loop: + - { src: /local, dest: /scratch/local } + - { src: /share/apps, dest: /data/rc/apps } -- GitLab