Skip to content
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

Fix interactive apps deploy on head node #358

Open
wants to merge 2 commits into
base: uab-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@
gpu_node_glob_bash: "{{ compute_node_prefix }}{0..{{ num_compute_nodes|int - 1 }}}"

#Jupyter related
jupyter_provision: false
jupyter_provision: true
jupyter_ood_app_repo: "https://github.com/OSC/bc_example_jupyter.git"
jupyter_ood_app_refspec: "{{ github_refspec }}"
jupyter_ood_app_version: "custom_environment"

#EasyBuild variables
cluster_shared_folder: "/export"
cluster_shared_folder: "/cm/shared"
easybuild_prefix: "{{ cluster_shared_folder }}/eb"
easybuild_tmpdir: "/tmp"
easybuild_buildpath: "/tmp/build"
Expand Down
8 changes: 5 additions & 3 deletions roles/ohpc_add_easybuild/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@

- name: Boostrap EasyBuild
shell: |
source /opt/ohpc/admin/lmod/lmod/init/bash
python bootstrap_eb.py "{{ easybuild_prefix }}"
source /usr/share/lmod/lmod/init/bash
source /tmp/eb_venv/bin/activate
/tmp/eb_venv/bin/eb --install-latest-eb-release --prefix {{ easybuild_prefix }}
become_user: build
args:
executable: /bin/bash
Expand Down Expand Up @@ -68,10 +69,11 @@

- name: Update file in warewulf file database
command: wwsh file sync
when: not cod_deploy

- name: Verify EasyBuild installation
shell: |
source /opt/ohpc/admin/lmod/lmod/init/bash
source /usr/share/lmod/lmod/init/bash
module use "{{ easybuild_prefix }}/modules/all"
module load EasyBuild
eb --version
Expand Down
26 changes: 11 additions & 15 deletions roles/ohpc_matlab/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
- name: install the latest version of libXtst
yum:
name: libXt
state: latest

- name: Create directory
file:
path: "{{ matlab_clustershare }}"
state: directory
mode: 0755

- name: Download matlab
get_url:
url: "{{ matlab_download_url }}"
dest: "{{ matlab_destination }}"
- name: Create directory
file:
path: "{{ matlab_clustershare }}/{{ matlab_module_file }}/bin"
state: directory
mode: 0755

- name: Extract matlab
unarchive:
src: "{{ matlab_destination }}"
dest: "{{ matlab_clustershare }}"
remote_src: yes
- name: Install MATLAB (Executable file to run xfce4desktop)
template:
src: "{{ matlab_module_appdir }}"
dest: "{{ matlab_clustershare }}/{{ matlab_module_file }}/bin/{{ matlab_module_appdir }}"
mode: a+x

- name: Create directory
- name: Create modules directory
file:
path: "{{ matlab_module_path }}/{{ matlab_module_appdir }}"
state: directory
Expand Down